GLib.quark_from_string

function quark_from_string(string: String): GLib.Quark {
    // Gjs wrapper for g_quark_from_string()
}
  

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

string

a string

Returns

the GLib.Quark identifying the string, or 0 if string is null