VLC 4.0.0-dev
Loading...
Searching...
No Matches
Include dependency graph for vlc_charset.h:

Go to the source code of this file.

Macros

#define VLC_ICONV_ERR   ((size_t) -1)
 
#define FromLocale(l)   (l)
 
#define ToLocale(u)   (u)
 
#define LocaleFree(s)   ((void)(s))
 
#define FromLocaleDup   strdup
 
#define ToLocaleDup   strdup
 

Typedefs

typedef void * vlc_iconv_t
 

Functions

ssize_t vlc_towc (const char *str, uint32_t *restrict pwc)
 Decodes a code point from UTF-8.
 
static const char * IsUTF8 (const char *str)
 Checks UTF-8 validity.
 
static const char * IsASCII (const char *str)
 Checks ASCII validity.
 
static char * EnsureUTF8 (char *str)
 Removes non-UTF-8 sequences.
 
vlc_iconv_t vlc_iconv_open (const char *, const char *)
 
size_t vlc_iconv (vlc_iconv_t, const char **, size_t *, char **, size_t *)
 
int vlc_iconv_close (vlc_iconv_t)
 
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 *, const char *,...)
 Formats an UTF-8 string as fprintf(), then print it, with appropriate conversion to local encoding.
 
char * vlc_strcasestr (const char *, const char *)
 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.
 
static char * FromLatin1 (const char *latin)
 Converts a nul-terminated string from ISO-8859-1 to UTF-8.
 
double vlc_strtod_c (const char *restrict str, char **restrict end)
 Parses a double in C locale.
 
float vlc_strtof_c (const char *restrict str, char **restrict end)
 Parses a float in C locale.
 
static double vlc_atof_c (const char *str)
 Parses a double in C locale.
 
int vlc_vasprintf_c (char **restrict p, const char *restrict fmt, va_list ap)
 Formats a string using the C locale.
 
int vlc_asprintf_c (char **p, const char *fmt,...)
 Formats a string using the C locale.
 
int vlc_vfprintf_c (FILE *f, const char *fmt, va_list ap)
 Write a string to the output using the C locale.
 
int vlc_fprintf_c (FILE *f, const char *fmt,...)
 Write a string to the output using the C locale.
 
int vlc_vsscanf_c (const char *, const char *, va_list)
 
int vlc_sscanf_c (const char *, const char *,...)