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

slapi_UTF-8STRTOUPPER()

Converts a string made up of UTF-8 characters and converts it to upper case.

Syntax

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

Parameters

This function takes the following parameter:

s

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

Returns

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

Memory Concerns

The output string is allocated in this function, and needs to be released when it is no longer used.