74const CountryEntry pTable[] =
246const CountryEntry *
const pEnd = pTable + std::size( pTable );
249struct CountryEntryPred_Country
253 explicit CountryEntryPred_Country(
CountryId eCountry ) :
256 bool operator()(
const CountryEntry& rCmp )
const
264struct CountryEntryPred_Language
268 explicit CountryEntryPred_Language(
LanguageType eLanguage ) :
271 bool operator()(
const CountryEntry& rCmp )
const;
274bool CountryEntryPred_Language::operator()(
const CountryEntry& rCmp )
const
278 return rCmp.mbUseSubLang ? (
meLanguage == rCmp.meLanguage) :
292 const CountryEntry* pEntry = pTable;
295 pEntry = std::find_if( pEntry, pEnd, CountryEntryPred_Language( eLanguage ) );
298 if( pEntry->mbUseSubLang )
299 return pEntry->meCountry;
301 ePrimCountry = pEntry->meCountry;
305 while( pEntry != pEnd );
313 const CountryEntry* pEntry = std::find_if( pTable, pEnd, CountryEntryPred_Country( eCountry ) );
bool mbUseSubLang
Corresponding language type.
LanguageType meLanguage
Windows country ID.
#define LANGUAGE_ARMENIAN
#define LANGUAGE_GERMAN_AUSTRIAN
#define LANGUAGE_SANSKRIT
#define LANGUAGE_SPANISH_PARAGUAY
#define LANGUAGE_MANIPURI
#define LANGUAGE_KINYARWANDA_RWANDA
#define LANGUAGE_GERMAN_SWISS
#define LANGUAGE_SPANISH_BOLIVIA
#define LANGUAGE_MALAY_MALAYSIA
#define LANGUAGE_LITHUANIAN
#define LANGUAGE_ROMANIAN
#define LANGUAGE_ENGLISH_AUS
#define LANGUAGE_CHINESE_TRADITIONAL
#define LANGUAGE_SPANISH_ECUADOR
#define LANGUAGE_FRENCH_LUXEMBOURG
#define LANGUAGE_PORTUGUESE
#define LANGUAGE_GAELIC_IRELAND
#define LANGUAGE_HUNGARIAN
#define LANGUAGE_ARABIC_MOROCCO
#define LANGUAGE_FRENCH_CAMEROON
#define LANGUAGE_ENGLISH_BELIZE
#define LANGUAGE_SWEDISH_FINLAND
#define LANGUAGE_FRENCH_SENEGAL
#define LANGUAGE_BELARUSIAN
#define LANGUAGE_GERMAN_LUXEMBOURG
#define LANGUAGE_MACEDONIAN
#define LANGUAGE_SAMI_LAPPISH
#define LANGUAGE_ENGLISH_CAN
#define LANGUAGE_ITALIAN_SWISS
#define LANGUAGE_SPANISH_VENEZUELA
#define LANGUAGE_FRENCH_SWISS
#define LANGUAGE_ARABIC_UAE
#define LANGUAGE_FRENCH_MALI
#define LANGUAGE_GALICIAN
#define LANGUAGE_ENGLISH_JAMAICA
#define LANGUAGE_ARABIC_TUNISIA
#define LANGUAGE_ICELANDIC
#define LANGUAGE_ARABIC_ALGERIA
#define LANGUAGE_FRENCH_COTE_D_IVOIRE
#define LANGUAGE_SPANISH_COLOMBIA
#define LANGUAGE_CHINESE_SIMPLIFIED
#define LANGUAGE_SPANISH_PANAMA
#define LANGUAGE_ARABIC_JORDAN
#define LANGUAGE_SPANISH_NICARAGUA
#define LANGUAGE_ARABIC_IRAQ
#define LANGUAGE_SPANISH_GUATEMALA
#define LANGUAGE_SPANISH_COSTARICA
#define LANGUAGE_JAPANESE
#define LANGUAGE_SPANISH_PERU
#define LANGUAGE_GAELIC_SCOTLAND
#define LANGUAGE_CHINESE_SINGAPORE
#define LANGUAGE_ARABIC_EGYPT
#define LANGUAGE_FAEROESE
#define LANGUAGE_FRENCH_MONACO
#define LANGUAGE_CHINESE_MACAU
#define LANGUAGE_ENGLISH_EIRE
#define LANGUAGE_ARABIC_KUWAIT
#define LANGUAGE_MAORI_NEW_ZEALAND
#define LANGUAGE_RHAETO_ROMAN
#define LANGUAGE_SPANISH_CHILE
#define LANGUAGE_SPANISH_MODERN
#define LANGUAGE_ARABIC_LIBYA
#define LANGUAGE_SPANISH_EL_SALVADOR
#define LANGUAGE_ALBANIAN
#define LANGUAGE_ARABIC_LEBANON
#define LANGUAGE_ROMANIAN_MOLDOVA
#define LANGUAGE_ENGLISH_UK
#define LANGUAGE_ENGLISH_NZ
#define LANGUAGE_ASSAMESE
#define LANGUAGE_ENGLISH_ZIMBABWE
#define LANGUAGE_FRENCH_CANADIAN
#define LANGUAGE_UKRAINIAN
#define LANGUAGE_SPANISH_DATED
#define LANGUAGE_SPANISH_PUERTO_RICO
#define LANGUAGE_FRISIAN_NETHERLANDS
#define LANGUAGE_VIETNAMESE
#define LANGUAGE_CHINESE_HONGKONG
#define LANGUAGE_ARABIC_QATAR
#define LANGUAGE_FRENCH_BELGIAN
#define LANGUAGE_ARABIC_SAUDI_ARABIA
#define LANGUAGE_DONTKNOW
#define LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
#define LANGUAGE_AFRIKAANS
#define LANGUAGE_NORWEGIAN_BOKMAL
#define LANGUAGE_SPANISH_HONDURAS
#define LANGUAGE_ENGLISH_TRINIDAD
#define LANGUAGE_AZERI_LATIN
#define LANGUAGE_ENGLISH_SAFRICA
#define LANGUAGE_MALAY_BRUNEI_DARUSSALAM
#define LANGUAGE_ARABIC_OMAN
#define LANGUAGE_CROATIAN
#define LANGUAGE_GERMAN_LIECHTENSTEIN
#define LANGUAGE_SPANISH_ARGENTINA
#define LANGUAGE_MALAYALAM
constexpr LanguageType primary(LanguageType lt)
#define LANGUAGE_FRENCH_REUNION
#define LANGUAGE_ARABIC_YEMEN
#define LANGUAGE_SPANISH_MEXICAN
#define LANGUAGE_ENGLISH_PHILIPPINES
#define LANGUAGE_GEORGIAN
#define LANGUAGE_UZBEK_LATIN
#define LANGUAGE_PORTUGUESE_BRAZILIAN
#define LANGUAGE_URDU_INDIA
#define LANGUAGE_BULGARIAN
#define LANGUAGE_URDU_PAKISTAN
#define LANGUAGE_KASHMIRI
#define LANGUAGE_DUTCH_BELGIAN
#define LANGUAGE_ESTONIAN
#define LANGUAGE_GUJARATI
#define LANGUAGE_SLOVENIAN
#define LANGUAGE_SPANISH_URUGUAY
#define LANGUAGE_SERBIAN_LATIN_SAM
#define LANGUAGE_ARABIC_SYRIA
#define LANGUAGE_RUSSIAN_MOLDOVA
#define LANGUAGE_ARABIC_BAHRAIN
#define LANGUAGE_MONGOLIAN_CYRILLIC_MONGOLIA
#define LANGUAGE_ENGLISH_US
#define LANGUAGE_FRENCH_ZAIRE
#define LANGUAGE_INDONESIAN
const CountryId COUNTRY_ZIMBABWE
const CountryId COUNTRY_TUNISIA
const CountryId COUNTRY_IRAQ
const CountryId COUNTRY_ARGENTINA
const CountryId COUNTRY_RWANDA
const CountryId COUNTRY_VIET_NAM
const CountryId COUNTRY_INDONESIA
const CountryId COUNTRY_CHILE
const CountryId COUNTRY_ARMENIA
const CountryId COUNTRY_EGYPT
const CountryId COUNTRY_CANADA
const CountryId COUNTRY_FAEROE_ISLANDS
const CountryId COUNTRY_BOTSWANA
const CountryId COUNTRY_JAPAN
const CountryId COUNTRY_DENMARK
const CountryId COUNTRY_UAE
const CountryId COUNTRY_LESOTHO
const CountryId COUNTRY_CROATIA
const CountryId COUNTRY_HUNGARY
const CountryId COUNTRY_BRUNEI_DARUSSALAM
const CountryId COUNTRY_MALDIVES
const CountryId COUNTRY_GREECE
const CountryId COUNTRY_LIBYA
const CountryId COUNTRY_LATVIA
const CountryId COUNTRY_BELGIUM
const CountryId COUNTRY_OMAN
const CountryId COUNTRY_AZERBAIJAN
const CountryId COUNTRY_TAIWAN
const CountryId COUNTRY_LEBANON
const CountryId COUNTRY_ECUADOR
const CountryId COUNTRY_AUSTRIA
const CountryId COUNTRY_SWEDEN
const CountryId COUNTRY_PANAMA
const CountryId COUNTRY_URUGUAY
const CountryId COUNTRY_FRANCE
const CountryId COUNTRY_LUXEMBOURG
CountryId ConvertLanguageToCountry(LanguageType eLanguage)
Converts a language type to a Windows country ID.
const CountryId COUNTRY_MALTA
const CountryId COUNTRY_MOROCCO
const CountryId COUNTRY_PR_CHINA
const CountryId COUNTRY_SOUTH_KOREA
const CountryId COUNTRY_DOMINICAN_REPUBLIC
const CountryId COUNTRY_BANGLADESH
const CountryId COUNTRY_UZBEKISTAN
const CountryId COUNTRY_PORTUGAL
const CountryId COUNTRY_ISRAEL
const CountryId COUNTRY_SLOVAK
const CountryId COUNTRY_IRAN
const CountryId COUNTRY_ICELAND
const CountryId COUNTRY_MALI
const CountryId COUNTRY_NORWAY
const CountryId COUNTRY_MYANMAR
const CountryId COUNTRY_COTE_D_IVOIRE
const CountryId COUNTRY_PARAGUAY
const CountryId COUNTRY_JAMAICA
const CountryId COUNTRY_QATAR
const CountryId COUNTRY_DONTKNOW
const CountryId COUNTRY_SOUTH_AFRICA
const CountryId COUNTRY_NEW_ZEALAND
const CountryId COUNTRY_SERBIA
const CountryId COUNTRY_INDIA
const CountryId COUNTRY_ALBANIA
const CountryId COUNTRY_PUERTO_RICO
const CountryId COUNTRY_REUNION
const CountryId COUNTRY_SENEGAL
const CountryId COUNTRY_PAKISTAN
const CountryId COUNTRY_AUSTRALIA
const CountryId COUNTRY_EL_SALVADOR
const CountryId COUNTRY_MOLDOVA
const CountryId COUNTRY_MEXICO
const CountryId COUNTRY_FINLAND
const CountryId COUNTRY_YEMEN
const CountryId COUNTRY_JORDAN
const CountryId COUNTRY_UNITED_KINGDOM
const CountryId COUNTRY_SYRIA
const CountryId COUNTRY_ROMANIA
const CountryId COUNTRY_ALGERIA
const CountryId COUNTRY_COSTA_RICA
const CountryId COUNTRY_BRAZIL
const CountryId COUNTRY_NETHERLANDS
const CountryId COUNTRY_USA
const CountryId COUNTRY_BULGARIA
const CountryId COUNTRY_CAMEROON
const CountryId COUNTRY_TIBET
const CountryId COUNTRY_PHILIPPINES
const CountryId COUNTRY_SAUDI_ARABIA
const CountryId COUNTRY_SPAIN
const CountryId COUNTRY_VENEZUELA
const CountryId COUNTRY_SLOVENIA
const CountryId COUNTRY_ESTONIA
const CountryId COUNTRY_BAHRAIN
sal_uInt16 CountryId
Represents a Windows country ID.
const CountryId COUNTRY_MACEDONIA
const CountryId COUNTRY_GUATEMALA
const CountryId COUNTRY_SWITZERLAND
const CountryId COUNTRY_UKRAINE
const CountryId COUNTRY_KYRGYZSTAN
const CountryId COUNTRY_KENYA
const CountryId COUNTRY_NEPAL
const CountryId COUNTRY_GEORGIA
const CountryId COUNTRY_BELARUS
const CountryId COUNTRY_COLOMBIA
const CountryId COUNTRY_BOLIVIA
const CountryId COUNTRY_TURKEY
const CountryId COUNTRY_LITHUANIA
const CountryId COUNTRY_PERU
const CountryId COUNTRY_KUWAIT
const CountryId COUNTRY_SINGAPORE
const CountryId COUNTRY_TURKMENISTAN
const CountryId COUNTRY_GERMANY
const CountryId COUNTRY_RUSSIA
const CountryId COUNTRY_TAJIKISTAN
const CountryId COUNTRY_BELIZE
const CountryId COUNTRY_THAILAND
const CountryId COUNTRY_TATARSTAN
const CountryId COUNTRY_MALAYSIA
const CountryId COUNTRY_ITALY
const CountryId COUNTRY_LAOS
const CountryId COUNTRY_CAMBODIA
const CountryId COUNTRY_TRINIDAD_Y_TOBAGO
const CountryId COUNTRY_ZAIRE
const CountryId COUNTRY_MACAU
const CountryId COUNTRY_HONG_KONG
const CountryId COUNTRY_LIECHTENSTEIN
const CountryId COUNTRY_CZECH
const CountryId COUNTRY_MONGOLIA
const CountryId COUNTRY_IRELAND
const CountryId COUNTRY_HONDURAS
const CountryId COUNTRY_MONACO
LanguageType ConvertCountryToLanguage(CountryId eCountry)
Converts a Windows country ID to a language type.
const CountryId COUNTRY_KAZAKHSTAN
const CountryId COUNTRY_NICARAGUA
const CountryId COUNTRY_POLAND