Quarks

G-Golf Glib Quarks low level API.
Quarks — a 2-way association between a string and a unique integer identifier.

Procedures

g-quark-from-string
g-quark-to-string

Description

Quarks are associations between strings and integer identifiers. Given either the string or the GQuark identifier it is possible to retrieve the other.

Procedures

Procedure: g-quark-from-string str

Returns an integer.

Obtains and returns the GQuark identifying the string given by str. If the string does not currently have an associated GQuark, a new GQuark is created, using a copy of the string.

Procedure: g-quark-to-string g-quark

Returns a string.

Obtains and returns the string associated with the GQuark given by g-quark.