#include <LangInfo.h>
◆ CRegion()
| CLangInfo::CRegion::CRegion |
( |
| ) |
|
◆ GetCodeAlpha2()
| std::string CLangInfo::CRegion::GetCodeAlpha2 |
( |
| ) |
const |
The region as an ISO 3166-1 alpha-2 code.
- Note
- The stored form differs by platform, Windows widening it to alpha-3 when read.
- Returns
- The code, uppercase as ISO 3166-1 publishes it, or an empty string when the region is not a known one.
◆ GetCodeAlpha3()
| std::string CLangInfo::CRegion::GetCodeAlpha3 |
( |
| ) |
const |
The region as an ISO 3166-1 alpha-3 code.
- Returns
- The code, uppercase as ISO 3166-1 publishes it, or an empty string when the region is not a known one.
◆ GetLocale()
| CLocale CLangInfo::CRegion::GetLocale |
( |
| ) |
const |
The language and territory this region describes.
- Note
- langinfo.xml states them separately and in a form that varies by platform. The locale is the composed value, normalized, and knows how to render itself.
◆ SetDefaults()
| void CLangInfo::CRegion::SetDefaults |
( |
| ) |
|
◆ SetGlobalLocale()
Set the locale associated with this region global.
Set the locale associated with this region global. This affects string sorting & transformations.
- Todo
- move to CLangInfo class
◆ SetSpeedUnit()
| void CLangInfo::CRegion::SetSpeedUnit |
( |
const std::string & | strUnit | ) |
|
◆ SetTemperatureUnit()
| void CLangInfo::CRegion::SetTemperatureUnit |
( |
const std::string & | strUnit | ) |
|
◆ SetTimeZone()
| void CLangInfo::CRegion::SetTimeZone |
( |
const std::string & | strTimeZone | ) |
|
◆ m_cDecimalSep
| char CLangInfo::CRegion::m_cDecimalSep {'.'} |
◆ m_cThousandsSep
| char CLangInfo::CRegion::m_cThousandsSep {'.'} |
◆ m_speedUnit
◆ m_strDateFormatLong
| std::string CLangInfo::CRegion::m_strDateFormatLong |
◆ m_strDateFormatShort
| std::string CLangInfo::CRegion::m_strDateFormatShort |
◆ m_strGrouping
| std::string CLangInfo::CRegion::m_strGrouping |
◆ m_strLangLocaleName
| std::string CLangInfo::CRegion::m_strLangLocaleName |
◆ m_strMeridiemSymbols
| std::string CLangInfo::CRegion::m_strMeridiemSymbols[2] |
◆ m_strName
| std::string CLangInfo::CRegion::m_strName |
◆ m_strRegionLocaleName
| std::string CLangInfo::CRegion::m_strRegionLocaleName |
◆ m_strTimeFormat
| std::string CLangInfo::CRegion::m_strTimeFormat |
◆ m_strTimeZone
| std::string CLangInfo::CRegion::m_strTimeZone |
◆ m_tempUnit
The documentation for this class was generated from the following files: