Commit 6bc9799c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove i18n_strtod - nobody uses it and it's an ugly hack

parent 788907c4
......@@ -81,7 +81,6 @@ VLC_INTERNAL( bool, vlc_current_charset, ( char ** ) );
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 * ) );
......
......@@ -56,13 +56,6 @@ int main (void)
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.)
......
......@@ -377,16 +377,7 @@ char *vlc_fix_readdir( const char *psz_string )
}
/**
* 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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment