SearchMatch
classin packageklyn.io
public class SearchMatch
SearchMatch

One non-overlapping text occurrence. Line and column are one-based Unicode scalar coordinates; endColumn is exclusive. text excludes CR/LF terminators. Example: print(f"{hit.path}:{hit.line}:{hit.column}: {hit.text}")

Fields
Modifier and Type Member Description
public readonly column
column as Long
One-based Unicode scalar column.
public readonly endColumn
endColumn as Long
Exclusive end column.
public readonly line
line as Long
One-based line number.
public readonly path
path as FilePath
Matched file.
public readonly text
text as String
Complete matching line, without terminator.
public readonly value
value as String
Matched substring.
Constructors
Modifier and Type Member Description
public SearchMatch
SearchMatch(path as FilePath, line as Long, column as Long, endColumn as Long, text as String, value as String)
Creates one result.