Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
6bc9799c
Commit
6bc9799c
authored
May 21, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove i18n_strtod - nobody uses it and it's an ugly hack
parent
788907c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
18 deletions
+1
-18
include/vlc_charset.h
include/vlc_charset.h
+0
-1
src/test/i18n_atof.c
src/test/i18n_atof.c
+0
-7
src/text/charset.c
src/text/charset.c
+1
-10
No files found.
include/vlc_charset.h
View file @
6bc9799c
...
...
@@ -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
*
)
);
...
...
src/test/i18n_atof.c
View file @
6bc9799c
...
...
@@ -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
.)
...
...
src/text/charset.c
View file @
6bc9799c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment