Converts a data-id to a hash value.
This function implements the widely used DJB hash on the ID subset of the data-id string.
It can be passed to g_hash_table_new
as the hash_func parameter, when using non-NULL strings or unique_ids as keys in a
GHashTable.
data_id |
a data ID |
a hash value corresponding to the key |