Show Table of Contents
Chapter 41. Functions Related to UTF-8
This chapter contains reference information on routines that are related to UTF-8.
Table 41.1. UTF-8 Related Routines
| Function | Description |
|---|---|
| slapi_has8thBit() | Checks if a string has an 8-bit character. |
| slapi_utf8casecmp() | Makes case-insensitive string comparison of two UTF-8 strings. |
| slapi_UTF8CASECMP() | Compares two UTF-8 strings. |
| slapi_utf8ncasecmp() | Makes case-insensitive string comparison of first n characters of two UTF-8 strings. |
| slapi_UTF8NCASECMP() | Compares a specified number of UTF-8 characters. |
| slapi_utf8isLower() | Verifies if a UTF-8 character is a lower-case letter. |
| slapi_UTF8ISLOWER() | Verifies if a UTF-8 character is a lower-case letter. |
| slapi_utf8isUpper() | Verifies if a UTF-8 character is an uppercase letter. |
| slapi_UTF8ISUPPER() | Verifies if a UTF-8 character is an upper-case letter. |
| slapi_utf8StrToLower() | Converts upper-case characters in a UTF-8 string to lower-case characters. |
| slapi_UTF8STRTOLOWER() | Converts upper-case characters in a UTF-8 string to lower-case characters. |
| slapi_utf8StrToUpper() | Converts lower-case characters in a UTF-8 string to uppercase characters. |
| slapi_UTF8STRTOUPPER() | Converts lower-case characters in a UTF-8 string to upper-case characters. |
| slapi_utf8ToLower() | Convert an upper-case UTF-8 character to lower-case character. |
| slapi_UTF8TOLOWER() | Converts an upper-case UTF-8 character to lower-case character. |
| slapi_utf8ToUpper() | Converts a lower-case UTF-8 character to an upper-case character. |
| slapi_UTF8TOUPPER() | Converts a lower-case UTF-8 character to an upper-case character. |
41.1. slapi_has8thBit()
Checks if a string has an 8-bit character.
Syntax
#include "slapi-plugin.h" int slapi_has8thBit(unsigned char *s);
Parameters
This function takes the following parameter:
|
s
| Pointer to the null-terminated string to test. |
Returns
This function returns one of the following values:
- 1 if the string contains an 8-bit character.
- 0 if it does not.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.