Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

ucurr.h

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 
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 /* UCONFIG_NO_SERVICE */
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 /* #if !UCONFIG_NO_FORMATTING */
00196 
00197 #endif

Generated on Tue Jul 26 00:40:00 2005 for ICU 3.2 by  doxygen 1.3.9.1