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

ucurr.h

00001 /*
00002 **********************************************************************
00003 * Copyright (c) 2002-2003, International Business Machines
00004 * Corporation and others.  All Rights Reserved.
00005 **********************************************************************
00006 * $Source: /usr/cvs/icu/icu/source/i18n/unicode/ucurr.h,v $ 
00007 * $Revision: 1.11 $
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 /* #if !UCONFIG_NO_FORMATTING */
00154 
00155 #endif

Generated on Tue Oct 26 18:11:09 2004 for ICU 2.8 by  doxygen 1.3.9.1