|
VLC 4.0.0-dev
|
Functions | |
| 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 *,...) |
| int vlc_asprintf_c | ( | char ** | p, |
| const char * | fmt, | ||
| ... | |||
| ) |
Formats a string using the C locale.
This function formats a string from a format string and a variable argument list, just like the standard asprintf() but using the C locale for the formatting of numerals.
| [out] | p | storage space for a pointer to the heap-allocated formatted string (undefined on error) |
| fmt | format string |
|
inlinestatic |
Parses a double in C locale.
This function parses a double-precision floating point number from a string just like the standard atof() but it uses the C locale. In other words, it expects the POSIX/C/American decimal format regardless of the current numeric locale.
| str | nul-terminated string to parse |
References vlc_strtod_c().
Referenced by config_ChainParse(), config_LoadCmdLine(), and var_OptionParse().
| int vlc_fprintf_c | ( | FILE * | f, |
| const char * | fmt, | ||
| ... | |||
| ) |
Write a string to the output using the C locale.
This function formats a string from a format string and a variable argument list, just like the standard fprintf() but using the C locale for the formatting of numerals.
| f | output stream to write the string to |
| fmt | format string |
| int vlc_sscanf_c | ( | const char * | , |
| const char * | , | ||
| ... | |||
| ) |
| double vlc_strtod_c | ( | const char *restrict | str, |
| char **restrict | end | ||
| ) |
Parses a double in C locale.
This function parses a double-precision floating point number from a string just like the standard strtod() but it uses the C locale. In other words, it expects the POSIX/C/American decimal format regardless of the current numeric locale.
| str | nul-terminated string to parse | |
| [out] | end | storage space for a pointer to the first unparsed byte (or NULL to discard it) |
References freelocale(), LC_NUMERIC_MASK, newlocale(), and uselocale().
Referenced by vlc_atof_c().
| float vlc_strtof_c | ( | const char *restrict | str, |
| char **restrict | end | ||
| ) |
Parses a float in C locale.
This function parses a single-precision floating point number from a string just like the standard strtof() but it uses the C locale. In other words, it expects the POSIX/C/American decimal format regardless of the current numeric locale.
| str | nul-terminated string to parse | |
| [out] | end | storage space for a pointer to the first unparsed byte (or NULL to discard it) |
References freelocale(), LC_NUMERIC_MASK, newlocale(), strtof(), and uselocale().
Referenced by vlc_replay_gain_CopyFromMeta().
| int vlc_vasprintf_c | ( | char **restrict | p, |
| const char *restrict | fmt, | ||
| va_list | ap | ||
| ) |
Formats a string using the C locale.
This function formats a string from a format string and a variable argument list, just like the standard vasprintf() but using the C locale for the formatting of numerals.
| [out] | p | storage space for a pointer to the heap-allocated formatted string (undefined on error) |
| fmt | format string | |
| ap | variable argument list |
References freelocale(), LC_NUMERIC_MASK, newlocale(), uselocale(), and vasprintf().
Referenced by httpd_MsgAdd(), and vlc_asprintf_c().
| int vlc_vfprintf_c | ( | FILE * | f, |
| const char * | fmt, | ||
| va_list | ap | ||
| ) |
Write a string to the output using the C locale.
This function formats a string from a format string and a variable argument list, just like the standard vfprintf() but using the C locale for the formatting of numerals.
| f | output stream to write the string to |
| fmt | format string |
| ap | variable argument list |
References freelocale(), LC_NUMERIC_MASK, newlocale(), and uselocale().
Referenced by vlc_fprintf_c().
| int vlc_vsscanf_c | ( | const char * | , |
| const char * | , | ||
| va_list | |||
| ) |