MPD
0.20.6
|
Go to the source code of this file.
Functions | |
gcc_pure gcc_nonnull_all bool | ValidateUTF8 (const char *p) |
Is this a valid UTF-8 string? More... | |
gcc_const size_t | SequenceLengthUTF8 (char ch) |
gcc_pure size_t | SequenceLengthUTF8 (const char *p) |
gcc_pure gcc_nonnull_all const char * | Latin1ToUTF8 (const char *src, char *buffer, size_t buffer_size) |
Convert the specified string from ISO-8859-1 to UTF-8. More... | |
gcc_nonnull_all char * | UnicodeToUTF8 (unsigned ch, char *buffer) |
Convert the specified Unicode character to UTF-8 and write it to the buffer. More... | |
gcc_pure gcc_nonnull_all size_t | LengthUTF8 (const char *p) |
Returns the number of characters in the string. More... | |
gcc_pure gcc_nonnull_all const char* Latin1ToUTF8 | ( | const char * | src, |
char * | buffer, | ||
size_t | buffer_size | ||
) |
Convert the specified string from ISO-8859-1 to UTF-8.
gcc_pure gcc_nonnull_all size_t LengthUTF8 | ( | const char * | p | ) |
Returns the number of characters in the string.
This is different from strlen(), which counts the number of bytes.
gcc_const size_t SequenceLengthUTF8 | ( | char | ch | ) |
gcc_pure size_t SequenceLengthUTF8 | ( | const char * | p | ) |
gcc_nonnull_all char* UnicodeToUTF8 | ( | unsigned | ch, |
char * | buffer | ||
) |
Convert the specified Unicode character to UTF-8 and write it to the buffer.
buffer must have a length of at least 6!
gcc_pure gcc_nonnull_all bool ValidateUTF8 | ( | const char * | p | ) |
Is this a valid UTF-8 string?