Logo Search packages:      
Sourcecode: icu version File versions

ucurr.h File Reference


Detailed Description

C API: Encapsulates information about a currency.

Definition in file ucurr.h.

#include "unicode/utypes.h"
#include "unicode/uenum.h"

Go to the source code of this file.

Typedefs

typedef const void * UCurrRegistryKey

Enumerations

enum  UCurrCurrencyType {
  UCURR_ALL = INT32_MAX, UCURR_COMMON = 1, UCURR_UNCOMMON = 2, UCURR_DEPRECATED = 4,
  UCURR_NON_DEPRECATED = 8
}
enum  UCurrNameStyle { UCURR_SYMBOL_NAME, UCURR_LONG_NAME }

Functions

U_DRAFT int32_t U_EXPORT2 ucurr_countCurrencies (const char *locale, UDate date, UErrorCode *ec)
U_STABLE int32_t U_EXPORT2 ucurr_forLocale (const char *locale, UChar *buff, int32_t buffCapacity, UErrorCode *ec)
U_DRAFT int32_t U_EXPORT2 ucurr_forLocaleAndDate (const char *locale, UDate date, int32_t index, UChar *buff, int32_t buffCapacity, UErrorCode *ec)
U_STABLE int32_t U_EXPORT2 ucurr_getDefaultFractionDigits (const UChar *currency, UErrorCode *ec)
U_DRAFT UEnumeration *U_EXPORT2 ucurr_getKeywordValuesForLocale (const char *key, const char *locale, UBool commonlyUsed, UErrorCode *status)
U_STABLE const UChar *U_EXPORT2 ucurr_getName (const UChar *currency, const char *locale, UCurrNameStyle nameStyle, UBool *isChoiceFormat, int32_t *len, UErrorCode *ec)
U_STABLE const UChar *U_EXPORT2 ucurr_getPluralName (const UChar *currency, const char *locale, UBool *isChoiceFormat, const char *pluralCount, int32_t *len, UErrorCode *ec)
U_STABLE double U_EXPORT2 ucurr_getRoundingIncrement (const UChar *currency, UErrorCode *ec)
U_STABLE UEnumeration *U_EXPORT2 ucurr_openISOCurrencies (uint32_t currType, UErrorCode *pErrorCode)
U_STABLE UCurrRegistryKey U_EXPORT2 ucurr_register (const UChar *isoCode, const char *locale, UErrorCode *status)
U_STABLE UBool U_EXPORT2 ucurr_unregister (UCurrRegistryKey key, UErrorCode *status)


Generated by  Doxygen 1.6.0   Back to index