GOffice.String¶
Methods¶
| class | ERROR() | 
| class | append_c_n(target, c, n) | 
| class | append_gstring(target, src) | 
| class | cmp(gstr_a, gstr_b) | 
| class | cmp_ignorecase(gstr_a, gstr_b) | 
| class | equal(gstr_a, gstr_b) | 
| class | equal_ignorecase(gstr_a, gstr_b) | 
| class | equal_rich(gstr_a, gstr_b) | 
| class | foreach_base(callback, *data) | 
| class | hash(gstr) | 
| class | new(str) | 
| class | new_len(str, len) | 
| class | new_nocopy(str) | 
| class | new_nocopy_len(str, len) | 
| class | new_rich(str, byte_len, markup, phonetic) | 
| class | new_rich_nocopy(str, byte_len, markup, phonetic) | 
| class | replace(target, pos, oldlen, txt, newlen) | 
| get_casefold() | |
| get_casefolded_collate() | |
| get_collation() | |
| get_len() | |
| get_markup() | |
| get_ref_count() | |
| ref() | |
| trim(internal) | |
| unref() | 
Details¶
- 
class GOffice.String¶
- GOffice.Stringis a structure containing a string.- 
classmethod ERROR()¶
- Returns: - A string saying ‘ERROR’ but does not add a ref to it. - Return type: - GOffice.String- A convenience for g_return_val to share one error string without adding a reference to functions that do not add references to the result 
 - 
classmethod append_c_n(target, c, n)¶
- Parameters: - target (GLib.String) –
- c (int) –
- n (int) –
 
- target (
 - 
classmethod append_gstring(target, src)¶
- Parameters: - target (GLib.String) –
- src (GLib.String) –
 
- target (
 - 
classmethod cmp(gstr_a, gstr_b)¶
- Parameters: - Return type: 
 - 
classmethod cmp_ignorecase(gstr_a, gstr_b)¶
- Parameters: - Return type: 
 - 
classmethod equal(gstr_a, gstr_b)¶
- Parameters: - Return type: 
 - 
classmethod equal_ignorecase(gstr_a, gstr_b)¶
- Parameters: - Returns: - Trueif the two strings are equal when ignoring letter case.- Return type: 
 - 
classmethod equal_rich(gstr_a, gstr_b)¶
- Parameters: - Return type: 
 - 
classmethod foreach_base(callback, *data)¶
- Parameters: - callback (GLib.HFunc) – callback
- data (objectorNone) – user data
 - Iterates through the strings data base and apply callback to each. 
- callback (
 - 
classmethod new(str)¶
- Parameters: - str ( - str) – string (optionally- None)- Returns: - a reference to a - GOffice.Stringcontaining str, or- Noneif str is- None- Return type: - GOffice.String- GOffice.Stringduplicates str if no string already exists.
 - 
classmethod new_len(str, len)¶
- Parameters: - Returns: - a reference to a - GOffice.Stringcontaining str, or- Noneif str is- None- Return type: - GOffice.Stringduplicates str if no string already exists.
 - 
classmethod new_nocopy(str)¶
- Parameters: - str ( - str) – string- Returns: - a reference to a - GOffice.Stringcontaining str- Return type: - GOffice.String- GOffice.Stringtakes ownership of str
 - 
classmethod new_nocopy_len(str, len)¶
- Parameters: - Returns: - a reference to a - GOffice.Stringcontaining str- Return type: - GOffice.Stringtakes ownership of str
 - 
classmethod new_rich(str, byte_len, markup, phonetic)¶
- Parameters: - str (str) – string.
- byte_len (int) – < 0 will call strlen.
- markup (Pango.AttrList) – optionallyNonelist,GOffice.Stringsteals the ref.
- phonetic (GOffice.StringPhonetic) – optionallyNonelist of phonetic extensions,GOffice.Stringsteals the ref.
 - Returns: - a string. - Return type: 
- str (
 - 
classmethod new_rich_nocopy(str, byte_len, markup, phonetic)¶
- Parameters: - str (str) – string;GOffice.Stringtakes ownership
- byte_len (int) – < 0 will call strlen.
- markup (Pango.AttrList) – optionallyNonelist,GOffice.Stringsteals the ref.
- phonetic (GOffice.StringPhonetic) – optionallyNonelist of phonetic extensions,GOffice.Stringsteals the ref.
 - Returns: - a string. - Return type: 
- str (
 - 
classmethod replace(target, pos, oldlen, txt, newlen)¶
- Parameters: - target (GLib.String) –
- pos (int) –
- oldlen (int) –
- txt (str) –
- newlen (int) –
 
- target (
 - 
get_markup()¶
- Return type: - Pango.AttrList
 - 
ref()¶
- Return type: - GOffice.String
 - 
trim(internal)¶
- Parameters: - internal ( - bool) – Trim multiple consequtive internal spaces.- Returns: - self - Return type: - GOffice.String
 - 
unref()¶
 
- 
classmethod