Module enso_data::text [−][src]
Expand description
The common structures for text location and manipulation.
Structs
ByteIndex | Strongly typed index of byte in String (which may differ with analogous character index, because some chars takes more than one byte). |
Index | ====================================== === Text Coordinates And Distances === |
Size | Strongly typed size of container. |
Span | Strongly typed span into container with index and size. |
TextChangeTemplate | A template for structure describing a text operation in one place. |
TextLocation | A position of character in a multiline text. |
Functions
newline_byte_indices | Get indices (byte-counting) of the new line characters. |
newline_indices | Get indices (char-counting) of the new line characters. |
rev_newline_byte_indices | Get indices (byte-counting) of the new line characters, beginning from the text end. |
split_to_lines | Split text to lines handling both CR and CRLF line endings. |
Type Definitions
TextChange | The simplest change representation. |