Skip to main content

Module text

Module text 

Source
Expand description

Locating a piece of text inside an element’s value for select_text.

Structs§

TextSelection
A request to select (or place the caret around) some text inside an element.

Enums§

SelectionMode
What select_text should do with the matched text.

Functions§

char_offset
Converts a byte offset in value to a char (Unicode scalar) offset.
utf16_offset
Converts a byte offset in value to a UTF-16 code-unit offset.