Text
The data structure for documents.
Functions
Link copied to clipboard
Iterate over the text. When dir is -1, iteration happens from end to start. This will return lines and the breaks between them as separate strings.
Link copied to clipboard
Return a cursor that iterates over the given range of lines, without returning the line breaks between, and yielding empty strings for empty lines.
Link copied to clipboard
Get the description for the given (1-based) line number.
Link copied to clipboard
Return a sequence of lines in this document.
Link copied to clipboard
Retrieve a part of the document as a string.