23 #ifndef __ccxx_Locale_hxx 24 #define __ccxx_Locale_hxx 28 #ifndef CCXX_OS_ANDROID 55 String getEncoding()
const;
68 String getWeekDayName(
int day)
const;
75 String getAbbreviatedWeekDayName(
int day)
const;
82 String getMonthName(
int month)
const;
89 String getAbbreviatedMonthName(
int month)
const;
92 String getRadixCharacter()
const;
95 String getThousandsSeparator()
const;
98 String getCurrencySymbol()
const;
102 {
return(_language); }
106 {
return(_country); }
110 {
return(_variant); }
117 static String getCurrentEncoding();
120 static const Locale getCurrent();
123 static bool setCurrent(
const Locale& locale);
170 #ifdef CCXX_OS_WINDOWS 178 #ifdef CCXX_OS_WINDOWS 187 #endif // CCXX_OS_ANDROID 189 #endif // __ccxx_Locale_hxx static const Locale FRENCH
The "fr" locale.
Definition: Locale.h++:138
static const Locale GERMANY
The "de_DE" locale.
Definition: Locale.h++:140
static const Locale ENGLISH
The "en" locale.
Definition: Locale.h++:134
static const Locale CANADA_FRENCH
The "fr_CA" locale.
Definition: Locale.h++:128
static const Locale TAIWAN
The "zh_TW" locale.
Definition: Locale.h++:162
A class that encapsulates locale-specific information.
Definition: Locale.h++:37
static const Locale JAPAN
The "ja" locale.
Definition: Locale.h++:148
String toString() const
Get a String representation of this locale.
Definition: Locale.h++:113
String getCountry() const
Get the country component of this locale.
Definition: Locale.h++:105
static const Locale JAPANESE
The "ja" locale.
Definition: Locale.h++:150
String getVariant() const
Get the variant component of this locale.
Definition: Locale.h++:109
static const Locale SIMPLIFIED_CHINESE
The "zh_CN" locale.
Definition: Locale.h++:158
static const Locale CHINESE
The "zh" locale.
Definition: Locale.h++:132
static const Locale KOREAN
The "ko" locale.
Definition: Locale.h++:154
static const Locale UNITED_STATES
The "en_US" locale.
Definition: Locale.h++:166
#define COMMONCPP_API
Definition: Common.h++:126
String getLanguage() const
Get the language component of this locale.
Definition: Locale.h++:101
static const Locale TRADITIONAL_CHINESE
The "zh_TW" locale.
Definition: Locale.h++:160
static const Locale FRANCE
The "fr_FR" locale.
Definition: Locale.h++:136
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
static const Locale KOREA
The "ko" locale.
Definition: Locale.h++:152
static const Locale GERMAN
The "de" locale.
Definition: Locale.h++:142
static const Locale CANADA
The "en_CA" locale.
Definition: Locale.h++:126
static const Locale UNITED_KINGDOM
The "en_GB" locale.
Definition: Locale.h++:164
static const String null
The null string.
Definition: String.h++:1128
static const Locale SPANISH
The "es" locale.
Definition: Locale.h++:156
Definition: AllocationMap.c++:25
static const Locale ITALIAN
The "it" locale.
Definition: Locale.h++:146
static const Locale ITALY
The "it_IT" locale.
Definition: Locale.h++:144
static const Locale CHINA
The "zh_CN" locale.
Definition: Locale.h++:130