00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _UCURR_H_
00011 #define _UCURR_H_
00012
00013 #include "unicode/utypes.h"
00014
00015 #if !UCONFIG_NO_FORMATTING
00016
00017 typedef const void* UCurrRegistryKey;
00018
00045 U_CAPI const UChar* U_EXPORT2
00046 ucurr_forLocale(const char* locale,
00047 UErrorCode* ec);
00048
00055 typedef enum UCurrNameStyle {
00061 UCURR_SYMBOL_NAME,
00062
00068 UCURR_LONG_NAME
00069 } UCurrNameStyle;
00070
00082 U_CAPI UCurrRegistryKey U_EXPORT2
00083 ucurr_register(const UChar* isoCode,
00084 const char* locale,
00085 UErrorCode* status);
00096 U_CAPI UBool U_EXPORT2
00097 ucurr_unregister(UCurrRegistryKey key, UErrorCode* status);
00098
00116 U_CAPI const UChar* U_EXPORT2
00117 ucurr_getName(const UChar* currency,
00118 const char* locale,
00119 UCurrNameStyle nameStyle,
00120 UBool* isChoiceFormat,
00121 int32_t* len,
00122 UErrorCode* ec);
00123
00132 U_CAPI int32_t U_EXPORT2
00133 ucurr_getDefaultFractionDigits(const UChar* currency);
00134
00142 U_CAPI double U_EXPORT2
00143 ucurr_getRoundingIncrement(const UChar* currency);
00144
00145 #endif
00146
00147 #endif