Function

Purplenormalize_nocase

Declaration [src]

const char*
purple_normalize_nocase (
  const char* str
)

Description [src]

Normalizes a string, so that it is suitable for comparison.

This is one possible implementation for the protocol callback function “normalize.” It returns a lowercase and UTF-8 normalized version of the string.

Parameters

str const char*
 

The string to normalize.

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

Return value

Returns: const char*
 

A pointer to the normalized version stored in a static buffer.

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