const char* purple_normalize ( PurpleAccount* account, const char* str )
Normalizes a string, so that it is suitable for comparison.
The returned string will point to a static buffer, so if the
string is intended to be kept long-term, you
g_strdup() it. Also, calling
normalize() twice in the same line
will lead to problems.
Available since: 2.0.0
The account the string belongs to, or NULL if you do not know the account. If you use NULL, the string will still be normalized, but if the protocol uses a custom normalization function then the string may not be normalized correctly.
The data is owned by the caller of the function.
The string to normalize.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.