try_string


Description:

public static Quark try_string (string str)

Gets the Quark associated with the given string, or 0 if string is null or it has no associated Quark.

If you want the GQuark to be created if it doesn't already exist, use from_string or g_quark_from_static_string.

This function must not be used before library constructors have finished running.

Parameters:

string

a string

Returns:

the Quark associated with the string, or 0 if string is null or there is no Quark associated with it