interface SearchMatch {
    character: number;
    length: number;
    line: number;
    lineText: string | LinePreview;
}

Hierarchy (view full)

Properties

character: number

The (1-based) character number in the result line. For UTF-8 files, one multi-byte character counts as one character.

length: number

The length of the match, in characters. For UTF-8 files, one multi-byte character counts as one character.

line: number

The (1-based) line number of the result.

lineText: string | LinePreview

The text of the line containing the result.