Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 485

Table of Contents

Advertisement

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:
s0
s1
n
Returns
This function returns one of the following values:
A positive number if
0 if the two string are identical, ignoring case.
A negative number if
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
except the
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
slapi_UTF8NCASECMP()
Compares a specified number of UTF-8 characters.
Syntax
#include "slapi-plugin.h"
int slapi_UTF8NCASECMP(char *s0, char *s1, int n);
A null-terminated UTF-8 string.
A null-terminated UTF-8 string.
The number of UTF-8 characters (not bytes) from s0 and s1 to
compare.
is after
s0
is after
s1
characters limit.
n
characters, not
n
.
s1
.
s0
bytes.
n
Chapter 15
Functions Related to UTF-8
slapi_utf8casecmp()
Function Reference
485

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents