Functions Related to UTF-8
slapi_utf8isUpper()
Verifies if a UTF-8 character is an upper-case letter.
Syntax
#include "slapi-plugin.h"
int slapi_utf8isUpper(unsigned char *s);
Parameters
This function takes the following parameter:
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 upper-case letter.
slapi_UTF8ISUPPER()
Verifies if a UTF-8 character is an upper-case letter.
Syntax
#include "slapi-plugin.h"
int slapi_UTF8ISUPPER(char *s);
Parameters
This function takes the following parameter:
s
Returns
This function returns one of the following values:
•
1
•
0
488
Netscape Directory Server Plug-In Programmer's Guide • August 2002
A single UTF-8 character (could be multiple bytes)
A single UTF-8 character (could be multiple bytes)
if the character is an upper case letter.
if the character is not an uppercase letter.