Function

Purpleutf8_strcasecmp

since: 2.0

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.

Available since: 2.0

Parameters

a

Type: 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

Type: 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

Type: int

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