forwardSearch
fun forwardSearch(str: String, flags: TextSearchFlags, matchStart: TextIter?, matchEnd: TextIter?, limit: TextIter? = null): Boolean
Searches forward for @str.
Any match is returned by setting @match_start to the first character of the match and @match_end to the first character after the match. The search will not continue past @limit. Note that a search is a linear or O(n) operation, so you may wish to use @limit to avoid locking up your UI on large buffers.
Return
whether a match was found
Parameters
str
a search string
flags
flags affecting how the search is done
matchStart
return location for start of match
matchEnd
return location for end of match
limit
location of last possible @match_end, or null for the end of the buffer