53#if U_SHOW_CPLUSPLUS_API
410#ifndef U_HIDE_DEPRECATED_API
433#ifndef U_HIDE_DEPRECATED_API
455#ifndef U_HIDE_INTERNAL_API
"Smart pointer" base class; do not use directly: use LocalPointer etc.
A Locale object represents a specific geographical, political, or cultural region.
A class representing a collection of resource information pertaining to a given locale.
ResourceBundle(UResourceBundle *res, UErrorCode &status)
Constructor from a C UResourceBundle.
ResourceBundle(const ResourceBundle &original)
Copy constructor.
ResourceBundle * clone() const
Clone this object.
ResourceBundle(const char *packageName, const Locale &locale, UErrorCode &err)
Standard constructor, constructs a resource bundle for the locale-specific bundle in the specified pa...
ResourceBundle get(int32_t index, UErrorCode &status) const
Returns the resource in a resource at the specified index.
int32_t getSize() const
Returns the size of a resource.
UResType getType() const
Returns the type of a resource.
const char * getName() const
Gets the locale ID of the resource bundle as a string.
ResourceBundle(const UnicodeString &packageName, UErrorCode &err)
Construct a resource bundle for the default bundle in the specified package.
int32_t getInt(UErrorCode &status) const
returns a signed integer from a resource.
const int32_t * getIntVector(int32_t &len, UErrorCode &status) const
returns an integer vector from a resource.
ResourceBundle get(const char *key, UErrorCode &status) const
Returns a resource in a resource that has a given key.
ResourceBundle & operator=(const ResourceBundle &other)
Assignment operator.
const Locale & getLocale() const
Return the Locale associated with this ResourceBundle.
void getVersion(UVersionInfo versionInfo) const
Return the version number associated with this ResourceBundle as a UVersionInfo array.
ResourceBundle getNext(UErrorCode &status)
Returns the next resource in a given resource or nullptr if there are no more resources.
virtual UClassID getDynamicClassID() const override
ICU "poor man's RTTI", returns a UClassID for the actual class.
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
ResourceBundle(UErrorCode &err)
Construct a resource bundle for the ICU default bundle.
const char * getKey() const
Returns the key associated with this resource.
UnicodeString getStringEx(int32_t index, UErrorCode &status) const
Returns the string in a given resource at the specified index.
UBool hasNext() const
Checks whether the resource has another element to iterate over.
ResourceBundle getWithFallback(const char *key, UErrorCode &status)
This API implements multilevel fallback.
UnicodeString getNextString(UErrorCode &status)
Returns the next string in a resource or nullptr if there are no more resources to iterate over.
void resetIterator()
Resets the internal context of a resource so that iteration starts from the first element.
const Locale getLocale(ULocDataLocaleType type, UErrorCode &status) const
Return the Locale associated with this ResourceBundle.
const uint8_t * getBinary(int32_t &len, UErrorCode &status) const
returns a binary data from a resource.
uint32_t getUInt(UErrorCode &status) const
returns an unsigned integer from a resource.
const char * getVersionNumber() const
Return the version number associated with this ResourceBundle as a string.
virtual ~ResourceBundle()
Destructor.
UnicodeString getNextString(const char **key, UErrorCode &status)
Returns the next string in a resource or nullptr if there are no more resources to iterate over.
ResourceBundle(const UnicodeString &packageName, const Locale &locale, UErrorCode &err)
Constructor.
UnicodeString getString(UErrorCode &status) const
returns a string from a string resource type
UnicodeString getStringEx(const char *key, UErrorCode &status) const
Returns a string in a resource that has a given key.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Locale ID object.
ULocDataLocaleType
Constants for *_getLocale() Allow user to select whether she wants information on requested,...
int8_t UBool
The ICU boolean type, a signed-byte integer.
C++ API: Common ICU base class UObject.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UResType
Numeric constants for types of resource items.
struct UResourceBundle UResourceBundle
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside.
uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]
The binary form of a version on ICU APIs is an array of 4 uint8_t.