Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
58b66d49
Commit
58b66d49
authored
Sep 12, 2008
by
Marian Durkovic
Committed by
Derk-Jan Hartman
Sep 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore case when comparing
ISO-639
language codes
Signed-off-by:
Derk-Jan Hartman
<
hartman@videolan.org
>
parent
afd60281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/text/iso_lang.c
src/text/iso_lang.c
+3
-3
No files found.
src/text/iso_lang.c
View file @
58b66d49
...
...
@@ -49,7 +49,7 @@ const iso639_lang_t * GetLang_1( const char * psz_code )
const
iso639_lang_t
*
p_lang
;
for
(
p_lang
=
p_languages
;
p_lang
->
psz_eng_name
;
p_lang
++
)
if
(
!
strncmp
(
p_lang
->
psz_iso639_1
,
psz_code
,
2
)
)
if
(
!
strnc
asec
mp
(
p_lang
->
psz_iso639_1
,
psz_code
,
2
)
)
return
p_lang
;
return
&
unknown_language
;
...
...
@@ -60,7 +60,7 @@ const iso639_lang_t * GetLang_2T( const char * psz_code )
const
iso639_lang_t
*
p_lang
;
for
(
p_lang
=
p_languages
;
p_lang
->
psz_eng_name
;
p_lang
++
)
if
(
!
strncmp
(
p_lang
->
psz_iso639_2T
,
psz_code
,
3
)
)
if
(
!
strnc
asec
mp
(
p_lang
->
psz_iso639_2T
,
psz_code
,
3
)
)
return
p_lang
;
return
&
unknown_language
;
...
...
@@ -71,7 +71,7 @@ const iso639_lang_t * GetLang_2B( const char * psz_code )
const
iso639_lang_t
*
p_lang
;
for
(
p_lang
=
p_languages
;
p_lang
->
psz_eng_name
;
p_lang
++
)
if
(
!
strncmp
(
p_lang
->
psz_iso639_2B
,
psz_code
,
3
)
)
if
(
!
strnc
asec
mp
(
p_lang
->
psz_iso639_2B
,
psz_code
,
3
)
)
return
p_lang
;
return
&
unknown_language
;
...
...
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