SearchCursor

constructor(text: Text, query: String, from: DocPos = DocPos.ZERO, to: DocPos = text.endPos, normalize: (String) -> String = { it })

Parameters

text

The document text to search through.

query

The string to search for.

from

Start position of the search range (inclusive).

to

End position of the search range (exclusive, defaults to document length).

normalize

Optional normalization function (e.g. String.lowercase for case-insensitive).