21 #ifndef _GUAC_UNICODE_H 22 #define _GUAC_UNICODE_H int guac_utf8_write(int codepoint, char *utf8, int length)
Given destination buffer and its length, writes the given codepoint as UTF-8 to the buffer...
size_t guac_utf8_strlen(const char *str)
Given a UTF-8-encoded string, returns the length of the string in characters (not bytes)...
int guac_utf8_read(const char *utf8, int length, int *codepoint)
Given a buffer containing UTF-8 characters, reads the first codepoint in the buffer, returning the length of the codepoint in bytes.
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 chara...