| GOffice Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
GOSearchReplace; gboolean go_search_match_string (GOSearchReplace *sr,const char *src); GQuark go_search_replace_error_quark (void); char * go_search_replace_string (GOSearchReplace *sr,const char *src); gboolean go_search_replace_verify (GOSearchReplace *sr,gboolean repl,GError **err);
"ignore-case" gboolean : Read / Write "is-regexp" gboolean : Read / Write "match-words" gboolean : Read / Write "preserve-case" gboolean : Read / Write "replace-text" gchar* : Read / Write "search-text" gchar* : Read / Write
typedef struct {
char *search_text;
char *replace_text;
GORegexp *comp_search;
gboolean is_regexp; /* Search text is a regular expression. */
gboolean ignore_case; /* Consider "a" and "A" the same. */
gboolean preserve_case; /* Like Emacs' case-replace. */
gboolean match_words; /* Like grep -w. */
} GOSearchReplace;
gboolean go_search_replace_verify (GOSearchReplace *sr,gboolean repl,GError **err);
|
Search-and-Replace info to be checked |
|
Check replacement part too. |
|
Location to store error message. |
Returns : |
TRUE if search-and-replace data is valid. |
"ignore-case" property "ignore-case" gboolean : Read / Write
Ignore the case of letters.
Default value: FALSE
"is-regexp" property "is-regexp" gboolean : Read / Write
Is the search text a regular expression.
Default value: FALSE
"match-words" property "match-words" gboolean : Read / Write
Match whole words only.
Default value: FALSE
"preserve-case" property "preserve-case" gboolean : Read / Write
Preserve the case of letters.
Default value: FALSE
"replace-text" property "replace-text" gchar* : Read / Write
The text to replace with.
Default value: NULL