SearchCursor
class SearchCursor(text: Text, query: String, from: DocPos = DocPos.ZERO, to: DocPos = text.endPos, normalize: (String) -> String = { it }) : Iterator<SearchMatch>
A cursor that iterates over string matches in a Text document.
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).