261 Locale(
const char * language,
262 const char * country = 0,
263 const char * variant = 0,
264 const char * keywordsAndValues = 0);
380 inline const char * getLanguage( )
const;
389 inline const char * getScript( )
const;
396 inline const char * getCountry( )
const;
403 inline const char * getVariant( )
const;
413 inline const char * getName()
const;
422 const char * getBaseName()
const;
453 const char * getISO3Language()
const;
460 const char * getISO3Country()
const;
623 UBool isBogus(
void)
const;
643 static const char*
const*
U_EXPORT2 getISOCountries();
653 static const char*
const*
U_EXPORT2 getISOLanguages();
674 void setFromPOSIXID(
const char *posixID);
683 Locale& init(
const char* cLocaleID,
UBool canonicalize);
698 static Locale *getLocaleCache(
void);
712 static const Locale &getLocale(
int locid);
718 friend void locale_set_default_internal(
const char *);
748 return &fullName[variantBegin];
const char * getVariant() const
Returns the locale's variant code.
UBool isBogus(void) const
Gets the bogus state.
#define ULOC_LANG_CAPACITY
Useful constant for the maximum size of the language part of a locale ID.
const char * getLanguage() const
Returns the locale's ISO-639 language code.
const char * getScript() const
Returns the locale's ISO-15924 abbreviation script code.
#define ULOC_COUNTRY_CAPACITY
Useful constant for the maximum size of the country part of a locale ID (including the terminating NU...
const char * getName() const
Returns the programmatic name of the entire locale, with the language, country and variant separated ...
#define ULOC_FULLNAME_CAPACITY
Useful constant for the maximum size of the whole locale ID (including the terminating NULL and all k...
#define ULOC_SCRIPT_CAPACITY
Useful constant for the maximum size of the script part of a locale ID (including the terminating NUL...
unsigned int uint32_t
Define 64 bit limits.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
C API: Platform Utilities.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UBool operator!=(const Locale &other) const
Checks if two locale keys are not the same.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API If the compiler doesn't support namespaces...
UObject is the common ICU "boilerplate" class.
UBool operator==(const Locale &other) const
Checks if two locale keys are the same.
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Base class for 'pure' C++ implementations of uenum api.
C++ API: String Enumeration.
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
A Locale object represents a specific geographical, political, or cultural region.
const char * getCountry() const
Returns the locale's ISO-3166 country code.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
signed int int32_t
Define 64 bit limits.
int8_t UBool
The ICU boolean type.