The LDAP SDK contains a number of utility functions for working with UTF-8 strings. They are as follows:
ldap_x_utf8_chars Return the number of UTF-8 characters (not bytes) in a null-terminated UTF-8 string.
ldap_x_utf8_charlen Return the number of bytes in a UTF-8 character.
ldap_x_utf8_next Find the next character in a UTF-8 string.
ldap_x_utf8_prev Find the previous character in a UTF-8 string.
ldap_x_utf8_copy Copy one UTF-8 character.
ldap_x_utf8_strchr Find a character in a string.
ldap_x_utf8_strspn Find the first substring.
ldap_x_utf8_strcspn Find a substring in a string.
ldap_x_utf8_strpbrk Find first occurrence of a character from one string in another string.
ldap_x_utf8_strtok Find next token in string.