Is there any simply way how to create a case insensitive (String -> String) Glib Hash Table?
The result should fit this:
GHashTable *table;
//there should be definition of table
g_hash_table_insert(table, "KeY", "Something"); //insert
//every command should return the line in table
g_hash_table_lookup(table, "Key");
g_hash_table_lookup(table, "KEY");
g_hash_table_lookup(table, "key");
g_hash_table_lookup(table, "KeY");
I think the problem is only in definition of hash function and comparement function. However, I don't know which functions I should use.