Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

slapi_UTF-8STRTOLOWER()

Converts a UTF-8 string to lower case.

Syntax

#include "slapi-plugin.h"
 unsigned char *slapi_UTF-8STRTOLOWER(char *s);

Parameters

This function takes the following parameter:

s

A NULL terminated UTF-8 string to be converted to lower case.

Returns

This function returns a pointer to a NULL terminated UTF-8 string whose characters are converted to lower case. Characters which are not upper case are copied as is. If the string is not found to be a UTF-8 string, this function returns NULL.

Description

This function converts a string of multiple UTF-8 characters, and not a single character, as in slapi_UTF-8TOLOWER().

Memory Concerns

The output string is allocated, and needs to be released when it is no longer needed.

See Also

slapi_UTF-8TOLOWER()