TextIter.forwardSearch

bool forwardSearch(string str, gtk.types.TextSearchFlags flags, out gtk.text_iter.TextIter matchStart, out gtk.text_iter.TextIter matchEnd, gtk.text_iter.TextIter limit = null)

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.

match_start will never be set to a #GtkTextIter located before iter, even if there is a possible match_end after or at iter.

Parameters

stra search string
flagsflags affecting how the search is done
matchStartreturn location for start of match, or null
matchEndreturn location for end of match, or null
limitlocation of last possible match_end, or null for the end of the buffer

Returns

whether a match was found