GOffice.SearchReplace
Fields
| Name | Type | Access | Description | 
|---|
| base | GObject.Object | r |  | 
| comp_search | GOffice.Regexp | r | GOffice.Regexp | 
| ignore_case | bool | r | consider “a” and “A” the same. | 
| is_regexp | bool | r | search text is a regular expression. | 
| match_words | bool | r | like grep -w. | 
| plain_replace | bool | r |  | 
| preserve_case | bool | r | like Emacs’ case-replace. | 
| replace_text | str | r | string to use as replacement/ | 
| search_text | str | r | string to replace. | 
 
Class Details
- 
class GOffice.SearchReplace(**kwargs)
- 
- 
classmethod error_quark()
- 
 
- 
string(src)
- 
| Parameters: | src ( str) – the source string | 
|---|
 | Returns: | the string after search-and-replace.
However, if nothing changed, Noneis returned. | 
|---|
 | Return type: | strorNone | 
|---|
 
 
 
- 
verify(repl)
- 
| Parameters: | repl ( bool) – Check replacement part too. | 
|---|
 | Raises: | GLib.Error | 
|---|
 | Returns: | Trueif  search-and-replace data is valid. | 
|---|
 | Return type: | bool | 
|---|
 
 
 
 
Property Details
- 
GOffice.SearchReplace.props.ignore_case
- 
Ignore the case of letters. 
- 
GOffice.SearchReplace.props.is_regexp
- 
Is the search text a regular expression. 
- 
GOffice.SearchReplace.props.match_words
- 
Match whole words only. 
- 
GOffice.SearchReplace.props.preserve_case
- 
Preserve the case of letters. 
- 
GOffice.SearchReplace.props.replace_text
- 
The text to replace with 
- 
GOffice.SearchReplace.props.search_text
- 
The text to search for