Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 437

Table of Contents

Advertisement

Parameters
This function takes the following parameters:
s0
s1
Returns
This function returns one of the following values:
A positive number if
if the two string are identical, ignoring case.
0
A negative number if
Description
The function takes two UTF-8 strings (s0, s1 ) of signed char to be compared. The
comparison rules are as follows:
If both UTF-8 strings are NULL or zero-length, 0 is returned.
If one of the strings is NULL or zero-length, the NULL/zero-length string is
smaller.
If one or both of the strings are not UTF-8, system provided
used.
If one of the two strings contains no 8-bit characters,
The strings are compared after they are converted to lower-case UTF-8.
Each character is compared from the beginning.
Evaluation occurs in this order:
If the length of one character is shorter then the other, the difference of the two
lengths is returned.
If the length of the corresponding characters is the same, each byte in the
characters is compared.
If there is a difference between two bytes, the difference is returned.
If one string is shorter then the other, the difference is returned.
A null-terminated UTF-8 string.
A null-terminated UTF-8 string.
is after
.
s0
s1
is after
.
s1
s0
Functions Related to UTF-8
strcasecmp
is used.
strcasecmp
Chapter 14
Function Reference
is
437

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents