SearchContext.backward
bool backward(gtk.text_iter.TextIter iter, out gtk.text_iter.TextIter matchStart, out gtk.text_iter.TextIter matchEnd, out bool hasWrappedAround)Synchronous backward search. It is recommended to use the asynchronous functions instead, to not block the user interface. However, if you are sure that the buffer is small, this function is more convenient to use.
If the #GtkSourceSearchSettings:wrap-around property is false, this function doesn't try to wrap around.
The has_wrapped_around out parameter is set independently of whether a match is found. So if this function returns false, has_wrapped_around will have the same value as the #GtkSourceSearchSettings:wrap-around property.
Parameters
iter | start of search. |
matchStart | return location for start of match, or null. |
matchEnd | return location for end of match, or null. |
hasWrappedAround | return location to know whether the search has wrapped around, or null. |
Returns
whether a match was found.