VLC 4.0.0-dev
Loading...
Searching...
No Matches
unicode.c File Reference
Include dependency graph for unicode.c:

Functions

int utf8_vfprintf (FILE *stream, const char *fmt, va_list ap)
 Formats an UTF-8 string as vfprintf(), then print it, with appropriate conversion to local encoding.
 
int utf8_fprintf (FILE *stream, const char *fmt,...)
 Formats an UTF-8 string as fprintf(), then print it, with appropriate conversion to local encoding.
 
ssize_t vlc_towc (const char *str, uint32_t *restrict pwc)
 Decodes a code point from UTF-8.
 
char * vlc_strcasestr (const char *haystack, const char *needle)
 Look for an UTF-8 string within another one in a case-insensitive fashion.
 
char * FromCharset (const char *charset, const void *data, size_t data_size)
 Converts a string from the given character encoding to utf-8.
 
void * ToCharset (const char *charset, const char *in, size_t *outsize)
 Converts a nul-terminated UTF-8 string to a given character encoding.