Functions | |
unsigned long int | cucul_utf8_to_utf32 (char const *, unsigned int *) |
Convert a UTF-8 character to UTF-32. | |
unsigned int | cucul_utf32_to_utf8 (char *, unsigned long int) |
Convert a UTF-32 character to UTF-8. | |
unsigned char | cucul_utf32_to_cp437 (unsigned long int) |
Convert a UTF-32 character to CP437. | |
unsigned long int | cucul_cp437_to_utf32 (unsigned char) |
Convert a CP437 character to UTF-32. |
|
This function converts a UTF-8 character read from a string and returns its value in the UTF-32 character set. If the second argument is not null, the total number of read bytes is written in it. If a null byte was reached before the expected end of the UTF-8 sequence, this function returns zero and the number of read bytes is set to zero. This function never fails, but its behaviour with illegal UTF-8 sequences is undefined.
|
|
This function converts a UTF-32 character read from a string and writes its value in the UTF-8 character set into the given buffer. This function never fails, but its behaviour with illegal UTF-32 characters is undefined.
|
|
This function converts a UTF-32 character read from a string and returns its value in the CP437 character set, or "?" if the character has no equivalent. This function never fails.
|
|
This function converts a CP437 character read from a string and returns its value in the UTF-32 character set, or zero if the character is a CP437 control character. This function never fails.
|