Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 492

Table of Contents

Advertisement

Functions Related to UTF-8
slapi_utf8ToLower()
Converts an upper-case UTF-8 character to a lower-case character.
Syntax
#include "slapi-plugin.h"
void slapi_utf8ToLower(unsigned char *s, unsigned char *d, int *ssz,
int *dsz);
Parameters
This function takes the following parameters:
s
d
ssz
dsz
Memory Concerns
Memory for the output character is not allocated in this function; caller should
have allocated it (
slapi_UTF8TOLOWER()
Converts an upper-case UTF-8 character to a lower-case character.
Syntax
#include "slapi-plugin.h"
void slapi_UTF8TOLOWER(char *s, char *d, int *ssz, int *dsz);
Parameters
This function takes the following parameters:
s
d
ssz
492
Netscape Directory Server Plug-In Programmer's Guide • August 2002
A single UTF-8 character (could be multiple bytes).
Pointer to the lower case form of s. The memory for this must be
allocated by the caller before calling the function.
Length in bytes of the input character.
Length in bytes of the output character.
).
is used since
d
memmove
A single UTF-8 character (could be multiple bytes).
Pointer to the lower case form of s. The memory for this must be
allocated by the caller before calling the function.
Returns the length in bytes of the input character.
and
are overlapped.
s
d

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents