Interface TextOffset

interface TextOffset {
    length?: number;
    offset: number;
    text: string;
}

Hierarchy (view full)

Properties

Properties

length?: number

Assumed to match text.length if the text has not been transformed.

offset: number

The offset into the document.

text: string

The text found at the offset. If the text has been transformed, then the length might not match length. Example: Original: cafe\u0301, text: café