HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameter:
A null-terminated UTF-8 string to be converted to lower case.
s
Returns This function returns one of the following values:
A pointer to a null-terminated UTF-8 string whose characters are converted to lower case.
Character which are not upper case are copied as-is.
NULL if the string is not found to be a UTF-8 string.
Memory concerns The output string is allocated and needs to be released when no longer
needed.
See also “slapi_UTF8TOLOWER()”
41.12 slapi_utf8StrToUpper()
Description This function converts a string of multiple UTF-8 lowercase characters to uppercase
characters, not a single character as in “slapi_utf8ToUpper()”.
Syntax
#include "slapi-plugin.h"
unsigned char *slapi_utf8StrToUpper(unsigned char *s);
Parameters This function takes the following parameter:
A null-terminated UTF-8 string.
s
Returns This function returns one of the following values:
A null-terminated UTF-8 string whose characters are converted to upper case; characters
that are not lower case are copied as-is.
NULL if the string is not considered to be a UTF-8 string.
Memory concerns The output string is allocated in this function and needs to be released when
it is no longer used.
41.13 slapi_UTF8STRTOUPPER()
Converts lowercase characters in a UTF-8 string to uppercase characters.
Syntax
#include "slapi-plugin.h"
unsigned char *slapi_UTF8STRTOUPPER(char *s);
Parameters This function takes the following parameter:
A null-terminated UTF-8 string.
s
Returns This function returns one of the following values:
A null-terminated UTF-8 string whose characters are converted to upper case. Character
which are not lower case are copied as-is.
NULL if the string is not considered to be a UTF-8 string.
Memory concerns The output string is allocated in this function and needs to be released when
it is no longer used.
41.14 slapi_utf8ToLower()
Converts an uppercase UTF-8 character to a lowercase character.
332 Functions related to UTF-8