Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CLangCodeExpanderTest Class Reference
Inheritance diagram for CLangCodeExpanderTest:
CLangCodeExpander

Static Public Member Functions

static bool CallLookupInISO639Tables (const std::string &code, std::string &desc)
 
- Static Public Member Functions inherited from CLangCodeExpander
static bool ConvertISO6391ToISO6392B (const std::string &strISO6391, std::string &strISO6392B, bool checkWin32Locales=false)
 Converts a language given as 2-Char (ISO 639-1) to a 3-Char (ISO 639-2/T) code.
 
static std::string FindLanguageCodeWithSubtag (const std::string &str)
 

Additional Inherited Members

- Public Types inherited from CLangCodeExpander
enum  LANGFORMATS { ISO_639_1 , ISO_639_2 , ENGLISH_NAME }
 
enum class  LANG_LIST { DEFAULT , INCLUDE_ADDONS , INCLUDE_USERDEFINED , INCLUDE_ADDONS_USERDEFINED }
 
- Public Member Functions inherited from CLangCodeExpander
 CLangCodeExpander ()
 
 ~CLangCodeExpander ()
 
void LoadUserCodes (const TiXmlElement *pRootElement)
 
void Clear ()
 
bool Lookup (const std::string &code, std::string &desc)
 
bool Lookup (const int code, std::string &desc)
 
bool CompareFullLanguageNames (const std::string &lang1, const std::string &lang2)
 Determines if two english language names represent the same language.
 
bool CompareISO639Codes (const std::string &code1, const std::string &code2)
 Determines if two languages given as ISO 639-1, ISO 639-2/T, or ISO 639-2/B codes represent the same language.
 
bool ConvertToISO6391 (const std::string &lang, std::string &code)
 Converts a language given as 2-Char (ISO 639-1), 3-Char (ISO 639-2/T or ISO 639-2/B), or full english name string to a 2-Char (ISO 639-1) code.
 
std::string ConvertToISO6392B (const std::string &lang)
 Converts a language given as 2-Char (ISO 639-1), 3-Char (ISO 639-2/T or ISO 639-2/B), or full english name string to a 3-Char ISO 639-2/B code.
 
bool ConvertToISO6392B (const std::string &strCharCode, std::string &strISO6392B, bool checkWin32Locales=false)
 Converts a language given as 2-Char (ISO 639-1), 3-Char (ISO 639-2/T or ISO 639-2/B), or full english name string to a 3-Char ISO 639-2/T code.
 
bool ConvertToISO6392T (const std::string &strCharCode, std::string &strISO6392T, bool checkWin32Locales=false)
 Converts a language given as 2-Char (ISO 639-1), 3-Char (ISO 639-2/T or ISO 639-2/B), or full english name string to a 3-Char ISO 639-2/T code.
 
std::string ConvertToISO6392T (const std::string &lang)
 Converts a language given as 2-Char (ISO 639-1), 3-Char (ISO 639-2/T or ISO 639-2/B), or full english name string to a 3-Char ISO 639-2/T code.
 
std::vector< std::string > GetLanguageNames (LANGFORMATS format=ISO_639_1, LANG_LIST list=LANG_LIST::DEFAULT)
 
- Protected Types inherited from CLangCodeExpander
typedef std::map< std::string, std::string > STRINGLOOKUPTABLE
 
- Protected Member Functions inherited from CLangCodeExpander
bool LookupInUserMap (const std::string &code, std::string &desc)
 
bool ReverseLookup (const std::string &desc, std::string &code)
 Looks up the ISO 639-1 or ISO 639-2/T, whichever it finds first, code of the given english language name.
 
bool LookupUserCode (const std::string &desc, std::string &userCode)
 Looks up the user defined code of the given code or language name.
 
- Static Protected Member Functions inherited from CLangCodeExpander
static bool LookupInISO639Tables (const std::string &code, std::string &desc)
 
static bool LookupInLangAddons (const std::string &code, std::string &desc)
 
- Protected Attributes inherited from CLangCodeExpander
STRINGLOOKUPTABLE m_mapUser
 

Member Function Documentation

◆ CallLookupInISO639Tables()

static bool CLangCodeExpanderTest::CallLookupInISO639Tables ( const std::string &  code,
std::string &  desc 
)
inlinestatic

The documentation for this class was generated from the following file: