HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameter:
A single UTF-8 character (could be multiple bytes)
s
Returns This function returns one of the following values:
1 if the character is an uppercase letter.
0 if the character is not an uppercase letter.
41.9 slapi_UTF8ISUPPER()
Verifies if a UTF-8 character is an uppercase letter.
Syntax
#include "slapi-plugin.h"
int slapi_UTF8ISUPPER(char *s);
Parameters This function takes the following parameter:
A single UTF-8 character (could be multiple bytes)
s
Returns This function returns one of the following values:
1 if the character is an upper case letter.
0 if the character is not an uppercase letter.
41.10 slapi_utf8StrToLower()
Description This function converts a string of multiple UTF-8 uppercase characters to lowercase
characters, not a single character as in “slapi_UTF8TOLOWER()”.
Syntax
#include "slapi-plugin.h"
unsigned char *slapi_utf8StrToLower(unsigned char *s);
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;
characters 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 it is no longer
needed.
See also “slapi_utf8ToLower()”
41.11 slapi_UTF8STRTOLOWER()
Description This function converts a string of multiple UTF-8 uppercase characters to lowercase
characters, not a single character as in “slapi_UTF8TOLOWER()”.
Syntax
#include "slapi-plugin.h"
unsigned char *slapi_UTF8STRTOLOWER(char *s);;
41.9 slapi_UTF8ISUPPER() 331