libguac  0.7.0
Functions
unicode.h File Reference

Provides functions for manipulating Unicode strings. More...

Go to the source code of this file.

Functions

size_t guac_utf8_charsize (unsigned char c)
 Given the initial byte of a single UTF-8 character, returns the overall byte size of the entire character.
size_t guac_utf8_strlen (const char *str)
 Given a UTF-8-encoded string, returns the length of the string in characters (not bytes).

Detailed Description

Provides functions for manipulating Unicode strings.


Function Documentation

size_t guac_utf8_charsize ( unsigned char  c)

Given the initial byte of a single UTF-8 character, returns the overall byte size of the entire character.

Parameters:
cThe initial byte of the character to check.
Returns:
The number of bytes in the given character overall.
size_t guac_utf8_strlen ( const char *  str)

Given a UTF-8-encoded string, returns the length of the string in characters (not bytes).

Parameters:
strThe UTF-8 string to calculate the length of.
Returns:
The length in characters of the given UTF-8 string.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines