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
ebe61507
Commit
ebe61507
authored
May 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove DecodeLanguage (dead code)
parent
885bc36a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
32 deletions
+0
-32
include/vlc_iso_lang.h
include/vlc_iso_lang.h
+0
-1
src/text/iso_lang.c
src/text/iso_lang.c
+0
-31
No files found.
include/vlc_iso_lang.h
View file @
ebe61507
...
@@ -41,7 +41,6 @@ extern "C" {
...
@@ -41,7 +41,6 @@ extern "C" {
VLC_EXPORT
(
const
iso639_lang_t
*
,
GetLang_1
,
(
const
char
*
)
);
VLC_EXPORT
(
const
iso639_lang_t
*
,
GetLang_1
,
(
const
char
*
)
);
VLC_EXPORT
(
const
iso639_lang_t
*
,
GetLang_2T
,
(
const
char
*
)
);
VLC_EXPORT
(
const
iso639_lang_t
*
,
GetLang_2T
,
(
const
char
*
)
);
VLC_EXPORT
(
const
iso639_lang_t
*
,
GetLang_2B
,
(
const
char
*
)
);
VLC_EXPORT
(
const
iso639_lang_t
*
,
GetLang_2B
,
(
const
char
*
)
);
VLC_EXPORT
(
const
char
*
,
DecodeLanguage
,
(
uint16_t
)
);
#if defined( __cplusplus )
#if defined( __cplusplus )
}
}
#endif
#endif
...
...
src/text/iso_lang.c
View file @
ebe61507
...
@@ -43,37 +43,6 @@
...
@@ -43,37 +43,6 @@
static
const
iso639_lang_t
unknown_language
=
static
const
iso639_lang_t
unknown_language
=
{
"Unknown"
,
"Unknown"
,
"??"
,
"???"
,
"???"
};
{
"Unknown"
,
"Unknown"
,
"??"
,
"???"
,
"???"
};
/*****************************************************************************
* DecodeLanguage: gives the long language name from the two-letter
* ISO-639 code
*****************************************************************************/
const
char
*
DecodeLanguage
(
uint16_t
i_code
)
{
const
iso639_lang_t
*
p_lang
;
uint8_t
psz_code
[
3
];
psz_code
[
0
]
=
i_code
>>
8
;
psz_code
[
1
]
=
i_code
&
0xff
;
psz_code
[
2
]
=
'\0'
;
for
(
p_lang
=
p_languages
;
p_lang
->
psz_eng_name
;
p_lang
++
)
{
if
(
!
memcmp
(
p_lang
->
psz_iso639_1
,
psz_code
,
2
)
)
{
# if 0
if
(
*
p_lang
->
psz_native_name
)
{
return
p_lang
->
psz_native_name
;
}
#endif
return
_
(
p_lang
->
psz_eng_name
);
}
}
return
_
(
"Unknown"
);
}
const
iso639_lang_t
*
GetLang_1
(
const
char
*
psz_code
)
const
iso639_lang_t
*
GetLang_1
(
const
char
*
psz_code
)
{
{
const
iso639_lang_t
*
p_lang
;
const
iso639_lang_t
*
p_lang
;
...
...
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