/* Returns: the #GQuark associated with the string, or 0 if @string is NULL or there is no #GQuark associated with it  */
GQuark g_quark_try_string(const gchar *string)
/* Returns: the #GQuark associated with the string, or 0 if @string is NULL or there is no #GQuark associated with it  */
GQuark g_quark_try_string(const gchar *string)
{
  GQuark quark = 0;
  if (string == NULL)
    return 0;
  G_LOCK (quark_global);
  quark = GPOINTER_TO_UINT (g_hash_table_lookup (quark_ht, string));
  G_UNLOCK (quark_global);
  return quark;
}