Functions Related to UTF-8
Chapter
15
Function Reference
485
slapi_utf8ncasecmp()
Makes case-insensitive string comparison of first n characters of two UTF-8 strings.
Syntax
#include “slapi-plugin.h”
int slapi_utf8ncasecmp(unsigned char *s0, unsigned char *s1, int n);
Parameters
This function takes the following parameters:
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
.
Description
This function takes two UTF-8 strings (s0, s1) of unsigned char to be compared for a
specified number of characters. The rules are the same as in
slapi_utf8casecmp()
except the
n
characters limit.
Do not use this function for collation as there is no notion of locale in this function;
it’s UTF-8 code order, which is different from the locale-based collation. Also, the
comparison is for
n
characters, not
n
bytes.
slapi_UTF8NCASECMP()
Compares a specified number of UTF-8 characters.
Syntax
#include “slapi-plugin.h”
int slapi_UTF8NCASECMP(char *s0, char *s1, int n);
s0
A null-terminated UTF-8 string.
s1
A null-terminated UTF-8 string.
n
The number of UTF-8 characters (not bytes) from
s0
and
s1
to
compare.
Содержание NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Страница 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Страница 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 26: ...Types of Directory Server Plug Ins 26 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 38: ...Compiling a Directory Server Plug In 38 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 54: ...An Example Pre Operation Plug In 54 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 90: ...Processing an LDAP Abandon Operation 90 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 110: ...Using SASL with an LDAP Client 110 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 122: ...Specifying Start and Close Functions 122 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 214: ...Summary of Data Types and Structures 214 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 554: ...Functions for Registering Additional Plug Ins 554 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 596: ...Parameters for the Virtual Attribute Service 596 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...