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
00051
U_CAPI int32_t U_EXPORT2
00052 ucurr_forLocale(
const char* locale,
00053 UChar* buff,
00054 int32_t buffCapacity,
00055 UErrorCode* ec);
00056
00063
typedef enum UCurrNameStyle {
00069 UCURR_SYMBOL_NAME,
00070
00076 UCURR_LONG_NAME
00077 } UCurrNameStyle;
00078
00090
U_CAPI UCurrRegistryKey U_EXPORT2
00091 ucurr_register(
const UChar* isoCode,
00092
const char* locale,
00093 UErrorCode* status);
00104
U_CAPI UBool U_EXPORT2
00105 ucurr_unregister(UCurrRegistryKey key, UErrorCode* status);
00106
00124
U_CAPI const UChar* U_EXPORT2
00125 ucurr_getName(
const UChar* currency,
00126
const char* locale,
00127 UCurrNameStyle nameStyle,
00128 UBool* isChoiceFormat,
00129 int32_t* len,
00130 UErrorCode* ec);
00131
00140
U_CAPI int32_t U_EXPORT2
00141 ucurr_getDefaultFractionDigits(
const UChar* currency);
00142
00150
U_CAPI double U_EXPORT2
00151 ucurr_getRoundingIncrement(
const UChar* currency);
00152
00153
#endif
00154
00155
#endif