MythTV
master
|
Go to the source code of this file.
Typedefs | |
using | ISO639ToNameMap = QMap< QString, QString > |
Functions | |
static int | createCodeToEnglishNamesMap (QMap< int, QString > &names) |
static int | createCode2ToCode3Map (QMap< int, int > &codemap) |
static int | createCodeToCanonicalCodeMap (QMap< int, int > &canonical) |
void | iso639_clear_language_list (void) |
QStringList | iso639_get_language_list (void) |
Returns list of three character ISO-639 language descriptors, starting with the most preferred. More... | |
std::vector< int > | iso639_get_language_key_list (void) |
QString | iso639_str2_to_str3 (const QString &str2) |
static QString | iso639_Alpha3_toName (const unsigned char *iso639_2) |
static QString | iso639_Alpha2_toName (const unsigned char *iso639_1) |
QString | iso639_str_toName (const unsigned char *iso639) |
Converts a 2 or 3 character iso639 string to a language name in English. More... | |
QString | iso639_key_toName (int iso639_2) |
Converts a canonical key to language name in English. More... | |
int | iso639_key_to_canonical_key (int iso639_2) |
static ISO639ToNameMap | createLanguageMap (void) |
QString | GetISO639LanguageName (const QString &iso639_1) |
QString | GetISO639EnglishLanguageName (const QString &iso639_1) |
Variables | |
QMap< int, QString > | iso639_key_to_english_name |
static QMap< int, int > | s_iso639_key2_to_key3 |
static QMap< int, int > | s_iso639_key3_to_canonical_key3 |
static QStringList | s_languages |
static std::vector< int > | s_language_keys |
int | dummy_createCodeToEnglishNamesMap |
int | dummy_createCode2ToCode3Map |
int | dummy_createCodeToCanonicalCodeMap |
static ISO639ToNameMap | gLanguageMap |
using ISO639ToNameMap = QMap<QString, QString> |
Definition at line 871 of file iso639.cpp.
|
static |
Generated from http://www.loc.gov/standards/iso639-2/ascii_8bits.html using awk script: cat ISO-639-2_values_8bits.txt | \ awk -F'|' \ '{printf " names[iso639_str3_to_key(\"s")] = QString("s");
", \ $1, $4}'
with hand editing for duplicates ("ger"=="deu").
Definition at line 173 of file iso639.cpp.
|
static |
Definition at line 657 of file iso639.cpp.
|
static |
Definition at line 135 of file iso639.cpp.
void iso639_clear_language_list | ( | void | ) |
Definition at line 22 of file iso639.cpp.
QStringList iso639_get_language_list | ( | void | ) |
Returns list of three character ISO-639 language descriptors, starting with the most preferred.
Definition at line 33 of file iso639.cpp.
Referenced by EITScanner::EITScanner(), and iso639_get_language_key_list().
std::vector<int> iso639_get_language_key_list | ( | void | ) |
Definition at line 56 of file iso639.cpp.
QString iso639_str2_to_str3 | ( | const QString & | str2 | ) |
Definition at line 68 of file iso639.cpp.
Referenced by AvFormatDecoder::AutoSelectAudioTrack(), MythDVDBuffer::ConvertLangCode(), get_canonical_lang(), GetISO639EnglishLanguageName(), ISO639_fill_selections(), and iso639_get_language_list().
|
static |
Definition at line 79 of file iso639.cpp.
Referenced by iso639_str_toName().
|
static |
Definition at line 90 of file iso639.cpp.
Referenced by iso639_str_toName().
QString iso639_str_toName | ( | const unsigned char * | iso639 | ) |
Converts a 2 or 3 character iso639 string to a language name in English.
Definition at line 100 of file iso639.cpp.
QString iso639_key_toName | ( | int | iso639_2 | ) |
Converts a canonical key to language name in English.
Definition at line 109 of file iso639.cpp.
Referenced by DecoderBase::AutoSelectTrack(), GetISO639EnglishLanguageName(), AvFormatDecoder::GetTrackDesc(), DecoderBase::GetTrackDesc(), MythDVDDecoder::PostProcessTracks(), AvFormatDecoder::ScanRawTextCaptions(), AvFormatDecoder::ScanStreams(), AvFormatDecoder::ScanTeletextCaptions(), ISO639LanguageDescriptor::toString(), and AvFormatDecoder::UpdateATSCCaptionTracks().
int iso639_key_to_canonical_key | ( | int | iso639_2 | ) |
Definition at line 118 of file iso639.cpp.
Referenced by AvFormatDecoder::AutoSelectAudioTrack(), MultipleStringStructure::CanonicalLanguageKey(), CaptionServiceDescriptor::CanonicalLanguageKey(), SCTEComponentNameDescriptor::CanonicalLanguageKey(), NetworkTextTable::CanonicalLanguageKey(), ComponentDescriptor::CanonicalLanguageKey(), ISO639LanguageDescriptor::CanonicalLanguageKey(), DataBroadcastDescriptor::CanonicalLanguageKey(), ExtendedEventDescriptor::CanonicalLanguageKey(), ShortEventDescriptor::CanonicalLanguageKey(), SubtitlingDescriptor::CanonicalLanguageKey(), TeletextDescriptor::CanonicalLanguageKey(), PrivateUPCCablecomEpisodeTitleDescriptor::CanonicalLanguageKey(), get_canonical_lang(), MythBDBuffer::GetAudioLanguage(), MythBDBuffer::GetSubtitleLanguage(), iso639_Alpha3_toName(), iso639_str_to_canonoical_str(), and EITHelper::SetLanguagePreferences().
|
static |
Definition at line 872 of file iso639.cpp.
Referenced by GetISO639LanguageName().
QString GetISO639LanguageName | ( | const QString & | iso639_1 | ) |
Definition at line 954 of file iso639.cpp.
Referenced by MythLocale::GetNativeLanguage().
QString GetISO639EnglishLanguageName | ( | const QString & | iso639_1 | ) |
Definition at line 962 of file iso639.cpp.
Referenced by MythLocale::GetLanguage(), V2Config::GetLanguages(), and LanguageSelection::Load().
QMap<int, QString> iso639_key_to_english_name |
Definition at line 10 of file iso639.cpp.
Referenced by iso639_Alpha2_toName(), iso639_Alpha3_toName(), ISO639_fill_selections(), and iso639_key_toName().
|
static |
Definition at line 11 of file iso639.cpp.
Referenced by iso639_Alpha2_toName(), and iso639_str2_to_str3().
|
static |
Definition at line 12 of file iso639.cpp.
Referenced by iso639_key_to_canonical_key().
|
static |
Definition at line 13 of file iso639.cpp.
Referenced by iso639_clear_language_list(), and iso639_get_language_list().
|
static |
Definition at line 14 of file iso639.cpp.
Referenced by iso639_clear_language_list(), and iso639_get_language_key_list().
int dummy_createCodeToEnglishNamesMap |
Definition at line 126 of file iso639.cpp.
int dummy_createCode2ToCode3Map |
Definition at line 129 of file iso639.cpp.
int dummy_createCodeToCanonicalCodeMap |
Definition at line 132 of file iso639.cpp.
|
static |
Definition at line 952 of file iso639.cpp.
Referenced by GetISO639LanguageName().