HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
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:
A single UTF-8 character (could be multiple bytes).
s
Pointer to the lower case form of s. The memory for this must be allocated by the caller
before calling the function.
d
Length in bytes of the input character.
ssz
Length in bytes of the output character.
dsz
Memory concerns Memory for the output character is not allocated in this function; caller
should have allocated it (d). memmove is used because s and d are overlapped.
41.15 slapi_UTF8TOLOWER()
Converts an uppercase UTF-8 character to a lowercase character.
Syntax
#include "slapi-plugin.h"
void slapi_UTF8TOLOWER(char *s, char *d, int *ssz, int *dsz);
Parameters This function takes the following parameters:
A single UTF-8 character (could be multiple bytes).
s
Pointer to the lower case form of s. The memory for this must be allocated by the caller
before calling the function.
d
Returns the length in bytes of the input character.
ssz
Returns the length in bytes of the output character.
dsz
41.16 slapi_utf8ToUpper()
Converts a lowercase UTF-8 character to an uppercase character.
Syntax
#include "slapi-plugin.h"
void slapi_utf8ToUpper(unsigned char *s, unsigned char *d,
int *ssz, int *dsz);
Parameters This function takes the following parameters:
Pointer to a single UTF-8 character (could be multiple bytes).
s
Pointer to the upper case version of s. The memory for this must be allocated by the
caller before calling the function.
d
Length in bytes of the input character.
ssz
Length in bytes of the output character.
dsz
Memory concerns Memory for the output character is not allocated in this function; caller
should have allocated it (d). memmove is used because s and d are overlapped.
41.17 slapi_UTF8TOUPPER()
Converts a lowercase UTF-8 character to an uppercase character.
41.15 slapi_UTF8TOLOWER() 333