TextIter.backwardSearch

Same as gtk_text_iter_forward_search(), but moves backward. match_end will never be set to a GtkTextIter located after iter, even if there is a possible match_start before or at iter.

Parameters

str string

search string

flags GtkTextSearchFlags

bitmask of flags affecting the search

matchStart TextIter

return location for start of match, or NULL. [out caller-allocates][allow-none]

matchEnd TextIter

return location for end of match, or NULL. [out caller-allocates][allow-none]

limit TextIter

location of last possible match_start, or NULL for start of buffer. [allow-none]

Return Value

Type: int

whether a match was found

Meta