41.13. slapi_UTF8STRTOUPPER()

Converts lower-case characters in a UTF-8 string to upper-case characters.
Syntax

#include "slapi-plugin.h"
unsigned char *slapi_UTF8STRTOUPPER(char *s);

Parameters

This function takes the following parameter:

s
A null-terminated UTF-8 string.
Returns

This function returns one of the following values:

  • A null-terminated UTF-8 string whose characters are converted to upper case. Character which are not lower case are copied as-is.
  • NULL if the string is not considered to be a UTF-8 string.
Memory Concerns

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