HashTable.strEqual

Compares two strings for byte-by-byte equality and returns TRUE if they are equal. It can be passed to HashTable.new as the key_equal_func parameter, when using non-NULL strings as keys in a glib.HashTable

This function is typically used for hash table comparisons, but can be used for general purpose comparisons of non-NULL strings. For a NULL-safe string comparison function, see g_strcmp0().

class HashTable
static
bool
strEqual
(
void* v1
,
void* v2
)

Parameters

v1 void*

a key

v2 void*

a key to compare with v1

Return Value

Type: bool

TRUE if the two keys match