Function

Purpleutf8_strcasecmp

Declaration [src]

int
purple_utf8_strcasecmp (
  const char* a,
  const char* b
)

Description [src]

Compares two UTF-8 strings case-insensitively. This comparison is more expensive than a simple g_utf8_collate() comparison because it calls g_utf8_casefold() on each string, which allocates new strings.

Parameters

a const char*
 

The first string.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
b const char*
 

The second string.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: int
 

-1 if a is less than b. 0 if a is equal to b. 1 if a is greater than b.