#include "unicode/utypes.h"
#include "unicode/uenum.h"
Go to the source code of this file.
Typedefs | |
typedef enum UCurrNameStyle | UCurrNameStyle |
Selector constants for ucurr_getName(). | |
typedef const void * | UCurrRegistryKey |
typedef enum UCurrCurrencyType | UCurrCurrencyType |
Selector constants for ucurr_openCurrencies(). | |
Enumerations | |
enum | UCurrNameStyle { UCURR_SYMBOL_NAME, UCURR_LONG_NAME } |
Selector constants for ucurr_getName(). More... | |
enum | UCurrCurrencyType { UCURR_ALL = INT32_MAX, UCURR_COMMON = 1, UCURR_UNCOMMON = 2, UCURR_DEPRECATED = 4, UCURR_NON_DEPRECATED = 8 } |
Selector constants for ucurr_openCurrencies(). More... | |
Functions | |
int32_t | ucurr_forLocale (const char *locale, UChar *buff, int32_t buffCapacity, UErrorCode *ec) |
Finds a currency code for the given locale. | |
UCurrRegistryKey | ucurr_register (const UChar *isoCode, const char *locale, UErrorCode *status) |
Register an (existing) ISO 4217 currency code for the given locale. | |
UBool | ucurr_unregister (UCurrRegistryKey key, UErrorCode *status) |
Unregister the previously-registered currency definitions using the URegistryKey returned from ucurr_register. | |
const UChar * | ucurr_getName (const UChar *currency, const char *locale, UCurrNameStyle nameStyle, UBool *isChoiceFormat, int32_t *len, UErrorCode *ec) |
Returns the display name for the given currency in the given locale. | |
int32_t | ucurr_getDefaultFractionDigits (const UChar *currency, UErrorCode *ec) |
Returns the number of the number of fraction digits that should be displayed for the given currency. | |
double | ucurr_getRoundingIncrement (const UChar *currency, UErrorCode *ec) |
Returns the rounding increment for the given currency, or 0.0 if no rounding is done by the currency. | |
UEnumeration * | ucurr_openISOCurrencies (uint32_t currType, UErrorCode *pErrorCode) |
Provides a UEnumeration object for listing ISO-4217 codes. |
Definition in file ucurr.h.
|
Selector constants for ucurr_openCurrencies().
|
|
Selector constants for ucurr_getName().
|
|
|
|
Selector constants for ucurr_openCurrencies().
|
|
Selector constants for ucurr_getName().
|
|
Finds a currency code for the given locale.
|
|
Returns the number of the number of fraction digits that should be displayed for the given currency.
|
|
Returns the display name for the given currency in the given locale. For example, the display name for the USD currency object in the en_US locale is "$".
|
|
Returns the rounding increment for the given currency, or 0.0 if no rounding is done by the currency.
|
|
Provides a UEnumeration object for listing ISO-4217 codes.
|
|
Register an (existing) ISO 4217 currency code for the given locale. Only the country code and the two variants EURO and PRE_EURO are recognized.
|
|
Unregister the previously-registered currency definitions using the URegistryKey returned from ucurr_register. Key becomes invalid after a successful call and should not be used again. Any currency that might have been hidden by the original ucurr_register call is restored.
|