file: xstring.aus

class: GStringCtors

[591:14] static extends: object

Alternate constructors for GString. Usage: GStringCtors.<name>(...). The primary constructor lives directly on GString.

Methods

class: GString

[37:7] extends: object

A GString is an object that handles the memory management of a C string. The emphasis of GString is on text, typically UTF-8. Crucially, the "str" member of a GString is guaranteed to have a trailing nul character, and it is therefore always safe to call functions such as strchr() or strdup() on it. However, a GString can also hold arbitrary binary data, because it has a "len" member, which includes any possible embedded nul characters in the data. Conceptually then, GString is like a GByteArray with the addition of many convenience methods for text, and a guaranteed nul terminator.

Members

Methods

class: GStringLayout

[12:14] static extends: object

Generated struct layout helper for GIR record String.

Methods