/* Returns: a pointer to the new or existing copy of @string within the #GStringChunk  */
gchar* g_string_chunk_insert_const(GStringChunk *chunk, const gchar *string)
/* Returns: a pointer to the new or existing copy of @string within the #GStringChunk  */
gchar* g_string_chunk_insert_const(GStringChunk *chunk, const gchar *string)
{
  char* lookup;
  g_return_val_if_fail (chunk != NULL, NULL);
  if (!chunk->const_table)
    chunk->const_table = g_hash_table_new (g_str_hash, g_str_equal);
  lookup = (char*) g_hash_table_lookup (chunk->const_table, (gchar *)string);
  if (!lookup)
    {
      lookup = g_string_chunk_insert (chunk, string);
      g_hash_table_insert (chunk->const_table, lookup, lookup);
    }
  return lookup;
}