| GtkSourceView 2 Reference Manual | ||||
|---|---|---|---|---|
#include <gtksourceview/gtksourceiter.h> enum GtkSourceSearchFlags;gboolean gtk_source_iter_backward_search (constGtkTextIter *iter, constgchar *str, GtkSourceSearchFlags flags,GtkTextIter *match_start,GtkTextIter *match_end, constGtkTextIter *limit);gboolean gtk_source_iter_forward_search (constGtkTextIter *iter, constgchar *str, GtkSourceSearchFlags flags,GtkTextIter *match_start,GtkTextIter *match_end, constGtkTextIter *limit);
typedef enum
{
GTK_SOURCE_SEARCH_VISIBLE_ONLY = 1 << 0,
GTK_SOURCE_SEARCH_TEXT_ONLY = 1 << 1,
GTK_SOURCE_SEARCH_CASE_INSENSITIVE = 1 << 2
/* Possible future plans: SEARCH_REGEXP */
} GtkSourceSearchFlags;
gboolean gtk_source_iter_backward_search (constGtkTextIter *iter, constgchar *str, GtkSourceSearchFlags flags,GtkTextIter *match_start,GtkTextIter *match_end, constGtkTextIter *limit);
Same as gtk_text_iter_backward_search()
|
a |
|
search string. |
|
bitmask of flags affecting the search. |
|
return location for start of match, or %NULL |
|
return location for end of match, or %NULL |
|
location of last possible match_start, or %NULL |
Returns : |
whether a match was found. |
gboolean gtk_source_iter_forward_search (constGtkTextIter *iter, constgchar *str, GtkSourceSearchFlags flags,GtkTextIter *match_start,GtkTextIter *match_end, constGtkTextIter *limit);
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.
If the str. i.e. str will be a
possibly-noncontiguous subsequence of the matched range. similarly,
if you specify str will match embedded pixbufs or child widgets.
If you specify the
Same as gtk_text_iter_forward_search()
|
start of search. |
|
a search string. |
|
flags affecting how the search is done. |
|
return location for start of match, or %NULL |
|
return location for end of match, or %NULL |
|
bound for the search, or %NULL |
Returns : |
whether a match was found. |