VLC  4.0.0-dev
Functions
Collaboration diagram for C/POSIX locale functions:

Functions

VLC_EXPORT double us_strtod (const char *, char **)
 us_strtod() has the same prototype as ANSI C strtod() but it uses the POSIX/C decimal format, regardless of the current numeric locale. More...
 
VLC_EXPORT float us_strtof (const char *, char **)
 us_strtof() has the same prototype as ANSI C strtof() but it uses the POSIX/C decimal format, regardless of the current numeric locale. More...
 
VLC_EXPORT double us_atof (const char *)
 us_atof() has the same prototype as ANSI C atof() but it expects a dot as decimal separator, regardless of the system locale. More...
 
VLC_EXPORT int us_vasprintf (char **, const char *, va_list)
 us_vasprintf() has the same prototype as vasprintf(), but doesn't use the system locale. More...
 
VLC_EXPORT int us_asprintf (char **, const char *,...)
 us_asprintf() has the same prototype as asprintf(), but doesn't use the system locale. More...
 

Detailed Description

Function Documentation

◆ us_asprintf()

VLC_EXPORT int us_asprintf ( char **  ,
const char *  ,
  ... 
)

us_asprintf() has the same prototype as asprintf(), but doesn't use the system locale.

References us_vasprintf().

◆ us_atof()

VLC_EXPORT double us_atof ( const char *  )

us_atof() has the same prototype as ANSI C atof() but it expects a dot as decimal separator, regardless of the system locale.

References us_strtod().

Referenced by config_ChainParse(), config_LoadCmdLine(), var_OptionParse(), and vlc_audio_replay_gain_MergeFromMeta().

◆ us_strtod()

VLC_EXPORT double us_strtod ( const char *  ,
char **   
)

us_strtod() has the same prototype as ANSI C strtod() but it uses the POSIX/C decimal format, regardless of the current numeric locale.

References freelocale(), LC_NUMERIC_MASK, newlocale(), and uselocale().

Referenced by us_atof().

◆ us_strtof()

VLC_EXPORT float us_strtof ( const char *  ,
char **   
)

us_strtof() has the same prototype as ANSI C strtof() but it uses the POSIX/C decimal format, regardless of the current numeric locale.

References freelocale(), LC_NUMERIC_MASK, newlocale(), strtof(), and uselocale().

◆ us_vasprintf()

VLC_EXPORT int us_vasprintf ( char **  ,
const char *  ,
va_list   
)

us_vasprintf() has the same prototype as vasprintf(), but doesn't use the system locale.

References freelocale(), LC_NUMERIC_MASK, newlocale(), uselocale(), and vasprintf().

Referenced by httpd_MsgAdd(), and us_asprintf().