VLC_EXPORT( const char *, GetFallbackEncoding, ( void ) );
-VLC_INTERNAL( double, i18n_strtod, ( const char *, char ** ) );
VLC_INTERNAL( double, i18n_atof, ( const char * ) );
VLC_EXPORT( double, us_strtod, ( const char *, char ** ) );
VLC_EXPORT( double, us_atof, ( const char * ) );
assert (us_atof(sharp9) == 999999.);
assert (us_atof("invalid") == 0.);
- assert ((i18n_strtod(dot9, &end ) == 999999.999999)
- && (*end == '\0'));
- assert ((i18n_strtod(comma9, &end ) == 999999.999999)
- && (*end == '\0'));
- assert ((i18n_strtod(sharp9, &end ) == 999999.)
- && (*end == '#'));
-
assert ((us_strtod(dot9, &end ) == 999999.999999)
&& (*end == '\0'));
assert ((us_strtod(comma9, &end ) == 999999.)
}
-/**
- * There are two decimal separators in the computer world-wide locales:
- * dot (which is the american default), and comma (which is used in France,
- * the country with the most VLC developers, among others).
- *
- * i18n_strtod() has the same prototype as ANSI C strtod() but it accepts
- * either decimal separator when deserializing the string to a float number,
- * independant of the local computer setting.
- */
-double i18n_strtod( const char *str, char **end )
+static double i18n_strtod( const char *str, char **end )
{
char *end_buf, e;
double d;