00001
00002
00003
00004
00005
00006
00007 #ifndef _UCURR_H_
00008 #define _UCURR_H_
00009
00010 #include "unicode/utypes.h"
00011
00012 #if !UCONFIG_NO_FORMATTING
00013
00046 U_DRAFT int32_t U_EXPORT2
00047 ucurr_forLocale(const char* locale,
00048 UChar* buff,
00049 int32_t buffCapacity,
00050 UErrorCode* ec);
00051
00058 typedef enum UCurrNameStyle {
00064 UCURR_SYMBOL_NAME,
00065
00071 UCURR_LONG_NAME
00072 } UCurrNameStyle;
00073
00074 #if !UCONFIG_NO_SERVICE
00075
00078 typedef const void* UCurrRegistryKey;
00079
00091 U_STABLE UCurrRegistryKey U_EXPORT2
00092 ucurr_register(const UChar* isoCode,
00093 const char* locale,
00094 UErrorCode* status);
00106 U_STABLE UBool U_EXPORT2
00107 ucurr_unregister(UCurrRegistryKey key, UErrorCode* status);
00108 #endif
00109
00127 U_STABLE const UChar* U_EXPORT2
00128 ucurr_getName(const UChar* currency,
00129 const char* locale,
00130 UCurrNameStyle nameStyle,
00131 UBool* isChoiceFormat,
00132 int32_t* len,
00133 UErrorCode* ec);
00134
00144 U_DRAFT int32_t U_EXPORT2
00145 ucurr_getDefaultFractionDigits(const UChar* currency,
00146 UErrorCode* ec);
00147
00157 U_DRAFT double U_EXPORT2
00158 ucurr_getRoundingIncrement(const UChar* currency,
00159 UErrorCode* ec);
00160
00161 #ifdef XP_CPLUSPLUS
00162 #include "unicode/unistr.h"
00163 #include "unicode/parsepos.h"
00164 U_NAMESPACE_BEGIN
00165
00185 void
00186 uprv_parseCurrency(const char* locale,
00187 const UnicodeString& text,
00188 ParsePosition& pos,
00189 UChar* result,
00190 UErrorCode& ec);
00191
00192 U_NAMESPACE_END
00193 #endif
00194
00195 #endif
00196
00197 #endif