awCopyUTF8toA
int awCopyUTF8toA(
char *a_dest,
char *utf8_src,
size_t n);
a_dest | The ANSI copy of the UTF-8 string. |
utf8_src | The UTF-8 string to be copied. |
n | The maximum number of characters that may be contained in a_dest. |
Copies a UTF-8 string, utf8_src, to an ANSI string, a_dest. The parameter n represents the maximum number of bytes that may be set in a_dest. The destination string will not be null-terminated if n is equal to the size of a_dest.
Unicode characters are represented in the resulting ANSI string as an escape sequence, such as \uf138.
Returns the number of bytes used in a_dest.