HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Syntax
#include "slapi-plugin.h"
int slapi_UTF8NCASECMP(char *s0, char *s1, int n);
Parameters This function takes the following parameters:
A null-terminated UTF-8 string.
s0
A null-terminated UTF-8 string.
s1
The number of UTF-8 characters (not bytes) from s0 and s1 to compare.
n
Returns This function returns one of the following values:
A positive number if s0 is after s1.
0 if the two string are identical, ignoring case.
A negative number if s1 is after s0.
41.6 slapi_utf8isLower()
Verifies if a UTF-8 character is a lowercase letter.
Syntax
#include "slapi-plugin.h"
int slapi_utf8isLower(unsigned char *s);
This function takes the following parameter:
Pointer to a single UTF-8 character (could be multiple bytes).
s
Returns This function returns one of the following values:
1 if the character is a lowercase letter.
0 if the character is not a lowercase letter.
41.7 slapi_UTF8ISLOWER()
Verifies if a UTF-8 character is a lowercase letter.
Syntax
#include "slapi-plugin.h"
int slapi_UTF8ISLOWER(char *s);
Parameters This function takes the following parameter:
Pointer to a single UTF-8 character (could be multiple bytes).
s
Returns This function returns one of the following values:
1 if the character is a lowercase letter.
0 if the character is not a lowercase letter.
41.8 slapi_utf8isUpper()
Verifies if a UTF-8 character is an uppercase letter.
Syntax
#include "slapi-plugin.h"
int slapi_utf8isUpper(unsigned char *s);
330 Functions related to UTF-8