GOffice.String¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
str |
r/w |
the embeded UTF-8 string |
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GOffice.String¶
GOffice.Stringis a structure containing a string.- classmethod ERROR()¶
- Returns:
A string saying ‘ERROR’
- Return type:
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) –
- classmethod append_gstring(target, src)¶
- Parameters:
target (
GLib.String) –src (
GLib.String) –
- classmethod cmp(gstr_a, gstr_b)¶
- classmethod cmp_ignorecase(gstr_a, gstr_b)¶
- classmethod equal(gstr_a, gstr_b)¶
- classmethod equal_ignorecase(gstr_a, gstr_b)¶
- classmethod equal_rich(gstr_a, gstr_b)¶
- classmethod foreach_base(callback, *data)¶
- Parameters:
callback (
GLib.HFunc) – callback
Iterates through the strings data base and apply callback to each.
- classmethod new(str)¶
- Parameters:
str (
str) –- Returns:
a
GOffice.Stringcontaining str, orNoneif str isNone- Return type:
str (nullable): string
GOffice.Stringduplicates str if no string already exists.
- classmethod new_len(str, len)¶
- Parameters:
- Returns:
a
GOffice.Stringcontaining str, orNoneif str isNone- Return type:
GOffice.Stringduplicates str if no string already exists.
- classmethod new_nocopy(str)¶
- Parameters:
- Returns:
a
GOffice.Stringcontaining str, orNoneif str isNone- Return type:
GOffice.Stringtakes ownership of str
- classmethod new_nocopy_len(str, len)¶
- Parameters:
- Returns:
a
GOffice.Stringcontaining str- Return type:
GOffice.Stringtakes ownership of str
- classmethod new_rich(str, byte_len, markup, phonetic)¶
- Parameters:
str (
str) –byte_len (
int) – < 0 will call strlen.markup (
Pango.AttrListorNone) – optional markup.phonetic (
GOffice.StringPhoneticorNone) – optional list of phonetic extensions.
- Returns:
a string.
- Return type:
str (nullable): string.
- classmethod new_rich_nocopy(str, byte_len, markup, phonetic)¶
- Parameters:
str (
str) –byte_len (
int) – < 0 will call strlen.markup (
Pango.AttrListorNone) – optional markup.phonetic (
GOffice.StringPhoneticorNone) – optional list of phonetic extensions.
- Returns:
a string.
- Return type:
str (transfer full) (nullable): string
- classmethod replace(target, pos, oldlen, txt, newlen)¶
- Parameters:
target (
GLib.String) –pos (
int) –oldlen (
int) –txt (
str) –newlen (
int) –
- get_markup()¶
- Returns:
markup from self.
- Return type:
- ref()¶
- Return type:
- trim(internal)¶
- Parameters:
internal (
bool) – Trim multiple consequtive internal spaces.- Returns:
self
- Return type:
- unref()¶