ucurr.h

Go to the documentation of this file.
00001 /* 00002 ********************************************************************** 00003 * Copyright (c) 2002-2004, International Business Machines 00004 * Corporation and others. All Rights Reserved. 00005 ********************************************************************** 00006 */ 00007 #ifndef _UCURR_H_ 00008 #define _UCURR_H_ 00009 00010 #include "unicode/utypes.h" 00011 00012 #if !UCONFIG_NO_FORMATTING 00013 00017 typedef const void* UCurrRegistryKey; 00018 00051 U_DRAFT 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_DRAFT UCurrRegistryKey U_EXPORT2 00091 ucurr_register(const UChar* isoCode, 00092 const char* locale, 00093 UErrorCode* status); 00105 U_DRAFT UBool U_EXPORT2 00106 ucurr_unregister(UCurrRegistryKey key, UErrorCode* status); 00107 00125 U_DRAFT const UChar* U_EXPORT2 00126 ucurr_getName(const UChar* currency, 00127 const char* locale, 00128 UCurrNameStyle nameStyle, 00129 UBool* isChoiceFormat, 00130 int32_t* len, 00131 UErrorCode* ec); 00132 00142 U_DRAFT int32_t U_EXPORT2 00143 ucurr_getDefaultFractionDigits(const UChar* currency, 00144 UErrorCode* ec); 00145 00155 U_DRAFT double U_EXPORT2 00156 ucurr_getRoundingIncrement(const UChar* currency, 00157 UErrorCode* ec); 00158 00159 #ifdef XP_CPLUSPLUS 00160 #include "unicode/unistr.h" 00161 #include "unicode/parsepos.h" 00162 U_NAMESPACE_BEGIN 00163 00183 void 00184 uprv_parseCurrency(const char* locale, 00185 const UnicodeString& text, 00186 ParsePosition& pos, 00187 UChar* result, 00188 UErrorCode& ec); 00189 00190 U_NAMESPACE_END 00191 #endif 00192 00193 #endif /* #if !UCONFIG_NO_FORMATTING */ 00194 00195 #endif

Generated on Fri Jun 18 12:36:00 2004 for ICU by doxygen 1.3.7