Quark

Members

Static functions

internStaticString
string internStaticString(string string_)

Returns a canonical representation for string. Interned strings can be compared for equality by comparing the pointers, instead of using strcmp(). g_intern_static_string() does not copy the string, therefore string must not be freed or modified.

internString
string internString(string string_)

Returns a canonical representation for string. Interned strings can be compared for equality by comparing the pointers, instead of using strcmp().

quarkFromStaticString
GQuark quarkFromStaticString(string string_)

Gets the GQuark identifying the given (static) string. If the string does not currently have an associated GQuark, a new GQuark is created, linked to the given string.

quarkFromString
GQuark quarkFromString(string string_)

Gets the GQuark identifying the given string. If the string does not currently have an associated GQuark, a new GQuark is created, using a copy of the string.

quarkToString
string quarkToString(GQuark quark)

Gets the string associated with the given GQuark

quarkTryString
GQuark quarkTryString(string string_)

Gets the GQuark associated with the given string, or 0 if string is NULL or it has no associated GQuark