Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 216.73.216.206
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
alt-nodejs19 /
root /
usr /
include /
unicode /
Delete
Unzip
Name
Size
Permission
Date
Action
alphaindex.h
26.53
KB
-rw-r--r--
2023-02-22 10:03
appendable.h
8.53
KB
-rw-r--r--
2023-02-22 10:03
basictz.h
9.98
KB
-rw-r--r--
2023-02-22 10:03
brkiter.h
27.81
KB
-rw-r--r--
2023-02-22 10:03
bytestream.h
10.75
KB
-rw-r--r--
2023-02-22 10:03
bytestrie.h
20.78
KB
-rw-r--r--
2023-02-22 10:03
bytestriebuilder.h
7.48
KB
-rw-r--r--
2023-02-22 10:03
calendar.h
102.25
KB
-rw-r--r--
2023-02-22 10:03
caniter.h
7.47
KB
-rw-r--r--
2023-02-22 10:03
casemap.h
25.33
KB
-rw-r--r--
2023-02-22 10:03
char16ptr.h
7.22
KB
-rw-r--r--
2023-02-22 10:03
chariter.h
24.06
KB
-rw-r--r--
2023-02-22 10:03
choicfmt.h
23.98
KB
-rw-r--r--
2023-02-22 10:03
coleitr.h
13.78
KB
-rw-r--r--
2023-02-22 10:03
coll.h
56.27
KB
-rw-r--r--
2023-02-22 10:03
compactdecimalformat.h
6.88
KB
-rw-r--r--
2023-02-22 10:03
curramt.h
3.78
KB
-rw-r--r--
2023-02-22 10:03
currpinf.h
7.3
KB
-rw-r--r--
2023-02-22 10:03
currunit.h
4.02
KB
-rw-r--r--
2023-02-22 10:03
datefmt.h
40.71
KB
-rw-r--r--
2023-02-22 10:03
dbbi.h
1.19
KB
-rw-r--r--
2023-02-22 10:03
dcfmtsym.h
20.61
KB
-rw-r--r--
2023-02-22 10:03
decimfmt.h
87.57
KB
-rw-r--r--
2023-02-22 10:03
displayoptions.h
7.11
KB
-rw-r--r--
2023-02-22 10:03
docmain.h
7.21
KB
-rw-r--r--
2023-02-22 10:03
dtfmtsym.h
38.22
KB
-rw-r--r--
2023-02-22 10:03
dtintrv.h
3.85
KB
-rw-r--r--
2023-02-22 10:03
dtitvfmt.h
49.27
KB
-rw-r--r--
2023-02-22 10:03
dtitvinf.h
18.63
KB
-rw-r--r--
2023-02-22 10:03
dtptngen.h
28.69
KB
-rw-r--r--
2023-02-22 10:03
dtrule.h
8.69
KB
-rw-r--r--
2023-02-22 10:03
edits.h
20.74
KB
-rw-r--r--
2023-02-22 10:03
enumset.h
2.08
KB
-rw-r--r--
2023-02-22 10:03
errorcode.h
4.84
KB
-rw-r--r--
2023-02-22 10:03
fieldpos.h
8.7
KB
-rw-r--r--
2023-02-22 10:03
filteredbrk.h
5.37
KB
-rw-r--r--
2023-02-22 10:03
fmtable.h
24.43
KB
-rw-r--r--
2023-02-22 10:03
format.h
12.5
KB
-rw-r--r--
2023-02-22 10:03
formattedvalue.h
9.75
KB
-rw-r--r--
2023-02-22 10:03
fpositer.h
3.03
KB
-rw-r--r--
2023-02-22 10:03
gender.h
3.35
KB
-rw-r--r--
2023-02-22 10:03
gregocal.h
31.04
KB
-rw-r--r--
2023-02-22 10:03
icudataver.h
1.02
KB
-rw-r--r--
2023-02-22 10:03
icuplug.h
11.83
KB
-rw-r--r--
2023-02-22 10:03
idna.h
12.71
KB
-rw-r--r--
2023-02-22 10:03
listformatter.h
8.61
KB
-rw-r--r--
2023-02-22 10:03
localebuilder.h
11.08
KB
-rw-r--r--
2023-02-22 10:03
localematcher.h
26.84
KB
-rw-r--r--
2023-02-22 10:03
localpointer.h
19.36
KB
-rw-r--r--
2023-02-22 10:03
locdspnm.h
7.12
KB
-rw-r--r--
2023-02-22 10:03
locid.h
47.66
KB
-rw-r--r--
2023-02-22 10:03
measfmt.h
11.42
KB
-rw-r--r--
2023-02-22 10:03
measunit.h
106.33
KB
-rw-r--r--
2023-02-22 10:03
measure.h
4.33
KB
-rw-r--r--
2023-02-22 10:03
messagepattern.h
33.71
KB
-rw-r--r--
2023-02-22 10:03
msgfmt.h
44.17
KB
-rw-r--r--
2023-02-22 10:03
normalizer2.h
33.66
KB
-rw-r--r--
2023-02-22 10:03
normlzr.h
30.96
KB
-rw-r--r--
2023-02-22 10:03
nounit.h
2.25
KB
-rw-r--r--
2023-02-22 10:03
numberformatter.h
94.82
KB
-rw-r--r--
2023-02-22 10:03
numberrangeformatter.h
25.02
KB
-rw-r--r--
2023-02-22 10:03
numfmt.h
49.84
KB
-rw-r--r--
2023-02-22 10:03
numsys.h
7.22
KB
-rw-r--r--
2023-02-22 10:03
parseerr.h
3.08
KB
-rw-r--r--
2023-02-22 10:03
parsepos.h
5.57
KB
-rw-r--r--
2023-02-22 10:03
platform.h
28.55
KB
-rw-r--r--
2023-02-22 10:03
plurfmt.h
25.25
KB
-rw-r--r--
2023-02-22 10:03
plurrule.h
20.62
KB
-rw-r--r--
2023-02-22 10:03
ptypes.h
3.49
KB
-rw-r--r--
2023-02-22 10:03
putil.h
6.32
KB
-rw-r--r--
2023-02-22 10:03
rbbi.h
28.46
KB
-rw-r--r--
2023-02-22 10:03
rbnf.h
49.82
KB
-rw-r--r--
2023-02-22 10:03
rbtz.h
15.77
KB
-rw-r--r--
2023-02-22 10:03
regex.h
84.41
KB
-rw-r--r--
2023-02-22 10:03
region.h
9.18
KB
-rw-r--r--
2023-02-22 10:03
reldatefmt.h
22.22
KB
-rw-r--r--
2023-02-22 10:03
rep.h
9.37
KB
-rw-r--r--
2023-02-22 10:03
resbund.h
18.09
KB
-rw-r--r--
2023-02-22 10:03
schriter.h
6.1
KB
-rw-r--r--
2023-02-22 10:03
scientificnumberformatter.h
6.44
KB
-rw-r--r--
2023-02-22 10:03
search.h
22.22
KB
-rw-r--r--
2023-02-22 10:03
selfmt.h
14.35
KB
-rw-r--r--
2023-02-22 10:03
simpleformatter.h
12.59
KB
-rw-r--r--
2023-02-22 10:03
simpletz.h
45.65
KB
-rw-r--r--
2023-02-22 10:03
smpdtfmt.h
71.93
KB
-rw-r--r--
2023-02-22 10:03
sortkey.h
11.18
KB
-rw-r--r--
2023-02-22 10:03
std_string.h
1.05
KB
-rw-r--r--
2023-02-22 10:03
strenum.h
9.92
KB
-rw-r--r--
2023-02-22 10:03
stringoptions.h
5.79
KB
-rw-r--r--
2023-02-22 10:03
stringpiece.h
10.05
KB
-rw-r--r--
2023-02-22 10:03
stringtriebuilder.h
15.47
KB
-rw-r--r--
2023-02-22 10:03
stsearch.h
21.42
KB
-rw-r--r--
2023-02-22 10:03
symtable.h
4.27
KB
-rw-r--r--
2023-02-22 10:03
tblcoll.h
36.92
KB
-rw-r--r--
2023-02-22 10:03
timezone.h
43.81
KB
-rw-r--r--
2023-02-22 10:03
tmunit.h
3.4
KB
-rw-r--r--
2023-02-22 10:03
tmutamt.h
4.91
KB
-rw-r--r--
2023-02-22 10:03
tmutfmt.h
7.42
KB
-rw-r--r--
2023-02-22 10:03
translit.h
65.82
KB
-rw-r--r--
2023-02-22 10:03
tzfmt.h
42.93
KB
-rw-r--r--
2023-02-22 10:03
tznames.h
16.85
KB
-rw-r--r--
2023-02-22 10:03
tzrule.h
34.86
KB
-rw-r--r--
2023-02-22 10:03
tztrans.h
6.13
KB
-rw-r--r--
2023-02-22 10:03
ubidi.h
89.61
KB
-rw-r--r--
2023-02-22 10:03
ubiditransform.h
12.71
KB
-rw-r--r--
2023-02-22 10:03
ubrk.h
24.43
KB
-rw-r--r--
2023-02-22 10:03
ucal.h
60.68
KB
-rw-r--r--
2023-02-22 10:03
ucasemap.h
15.21
KB
-rw-r--r--
2023-02-22 10:03
ucat.h
5.35
KB
-rw-r--r--
2023-02-22 10:03
uchar.h
145.09
KB
-rw-r--r--
2023-02-22 10:03
ucharstrie.h
22.53
KB
-rw-r--r--
2023-02-22 10:03
ucharstriebuilder.h
7.48
KB
-rw-r--r--
2023-02-22 10:03
uchriter.h
13.42
KB
-rw-r--r--
2023-02-22 10:03
uclean.h
11.2
KB
-rw-r--r--
2023-02-22 10:03
ucnv.h
83.46
KB
-rw-r--r--
2023-02-22 10:03
ucnv_cb.h
6.58
KB
-rw-r--r--
2023-02-22 10:03
ucnv_err.h
20.98
KB
-rw-r--r--
2023-02-22 10:03
ucnvsel.h
6.24
KB
-rw-r--r--
2023-02-22 10:03
ucol.h
61.95
KB
-rw-r--r--
2023-02-22 10:03
ucoleitr.h
9.82
KB
-rw-r--r--
2023-02-22 10:03
uconfig.h
12.07
KB
-rw-r--r--
2023-02-22 10:03
ucpmap.h
5.54
KB
-rw-r--r--
2023-02-22 10:03
ucptrie.h
22.51
KB
-rw-r--r--
2023-02-22 10:03
ucsdet.h
14.69
KB
-rw-r--r--
2023-02-22 10:03
ucurr.h
16.72
KB
-rw-r--r--
2023-02-22 10:03
udat.h
62.36
KB
-rw-r--r--
2023-02-22 10:03
udata.h
15.63
KB
-rw-r--r--
2023-02-22 10:03
udateintervalformat.h
11.93
KB
-rw-r--r--
2023-02-22 10:03
udatpg.h
30.18
KB
-rw-r--r--
2023-02-22 10:03
udisplaycontext.h
5.94
KB
-rw-r--r--
2023-02-22 10:03
udisplayoptions.h
8.8
KB
-rw-r--r--
2023-02-22 10:03
uenum.h
7.79
KB
-rw-r--r--
2023-02-22 10:03
ufieldpositer.h
4.41
KB
-rw-r--r--
2023-02-22 10:03
uformattable.h
10.97
KB
-rw-r--r--
2023-02-22 10:03
uformattedvalue.h
12.25
KB
-rw-r--r--
2023-02-22 10:03
ugender.h
2.06
KB
-rw-r--r--
2023-02-22 10:03
uidna.h
33.43
KB
-rw-r--r--
2023-02-22 10:03
uiter.h
22.75
KB
-rw-r--r--
2023-02-22 10:03
uldnames.h
10.48
KB
-rw-r--r--
2023-02-22 10:03
ulistformatter.h
10.78
KB
-rw-r--r--
2023-02-22 10:03
uloc.h
54.66
KB
-rw-r--r--
2023-02-22 10:03
ulocdata.h
11.3
KB
-rw-r--r--
2023-02-22 10:03
umachine.h
15.73
KB
-rw-r--r--
2023-02-22 10:03
umisc.h
1.34
KB
-rw-r--r--
2023-02-22 10:03
umsg.h
24.25
KB
-rw-r--r--
2023-02-22 10:03
umutablecptrie.h
8.3
KB
-rw-r--r--
2023-02-22 10:03
unifilt.h
4
KB
-rw-r--r--
2023-02-22 10:03
unifunct.h
4.05
KB
-rw-r--r--
2023-02-22 10:03
unimatch.h
6.1
KB
-rw-r--r--
2023-02-22 10:03
unirepl.h
3.38
KB
-rw-r--r--
2023-02-22 10:03
uniset.h
66.12
KB
-rw-r--r--
2023-02-22 10:03
unistr.h
170.53
KB
-rw-r--r--
2023-02-22 10:03
unorm.h
20.55
KB
-rw-r--r--
2023-02-22 10:03
unorm2.h
24.68
KB
-rw-r--r--
2023-02-22 10:03
unum.h
56.6
KB
-rw-r--r--
2023-02-22 10:03
unumberformatter.h
30.26
KB
-rw-r--r--
2023-02-22 10:03
unumberrangeformatter.h
15.35
KB
-rw-r--r--
2023-02-22 10:03
unumsys.h
7.26
KB
-rw-r--r--
2023-02-22 10:03
uobject.h
10.68
KB
-rw-r--r--
2023-02-22 10:03
upluralrules.h
8.79
KB
-rw-r--r--
2023-02-22 10:03
uregex.h
71.99
KB
-rw-r--r--
2023-02-22 10:03
uregion.h
9.81
KB
-rw-r--r--
2023-02-22 10:03
ureldatefmt.h
17.04
KB
-rw-r--r--
2023-02-22 10:03
urename.h
135.69
KB
-rw-r--r--
2023-02-22 10:03
urep.h
5.38
KB
-rw-r--r--
2023-02-22 10:03
ures.h
36.54
KB
-rw-r--r--
2023-02-22 10:03
uscript.h
27.8
KB
-rw-r--r--
2023-02-22 10:03
usearch.h
39.21
KB
-rw-r--r--
2023-02-22 10:03
uset.h
44.19
KB
-rw-r--r--
2023-02-22 10:03
usetiter.h
9.63
KB
-rw-r--r--
2023-02-22 10:03
ushape.h
18
KB
-rw-r--r--
2023-02-22 10:03
uspoof.h
65.84
KB
-rw-r--r--
2023-02-22 10:03
usprep.h
8.19
KB
-rw-r--r--
2023-02-22 10:03
ustdio.h
38.56
KB
-rw-r--r--
2023-02-22 10:03
ustream.h
1.89
KB
-rw-r--r--
2023-02-22 10:03
ustring.h
72.36
KB
-rw-r--r--
2023-02-22 10:03
ustringtrie.h
3.15
KB
-rw-r--r--
2023-02-22 10:03
utext.h
58.08
KB
-rw-r--r--
2023-02-22 10:03
utf.h
7.87
KB
-rw-r--r--
2023-02-22 10:03
utf16.h
23.35
KB
-rw-r--r--
2023-02-22 10:03
utf32.h
763
B
-rw-r--r--
2023-02-22 10:03
utf8.h
30.83
KB
-rw-r--r--
2023-02-22 10:03
utf_old.h
45.8
KB
-rw-r--r--
2023-02-22 10:03
utmscale.h
13.78
KB
-rw-r--r--
2023-02-22 10:03
utrace.h
17.18
KB
-rw-r--r--
2023-02-22 10:03
utrans.h
25.54
KB
-rw-r--r--
2023-02-22 10:03
utypes.h
31.06
KB
-rw-r--r--
2023-02-22 10:03
uvernum.h
6.33
KB
-rw-r--r--
2023-02-22 10:03
uversion.h
5.99
KB
-rw-r--r--
2023-02-22 10:03
vtzone.h
20.68
KB
-rw-r--r--
2023-02-22 10:03
Save
Rename
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** * Copyright (c) 2002-2016, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** */ #ifndef _UCURR_H_ #define _UCURR_H_ #include "unicode/utypes.h" #include "unicode/uenum.h" /** * \file * \brief C API: Encapsulates information about a currency. * * The ucurr API encapsulates information about a currency, as defined by * ISO 4217. A currency is represented by a 3-character string * containing its ISO 4217 code. This API can return various data * necessary the proper display of a currency: * * <ul><li>A display symbol, for a specific locale * <li>The number of fraction digits to display * <li>A rounding increment * </ul> * * The <tt>DecimalFormat</tt> class uses these data to display * currencies. * @author Alan Liu * @since ICU 2.2 */ #if !UCONFIG_NO_FORMATTING /** * Currency Usage used for Decimal Format * @stable ICU 54 */ enum UCurrencyUsage { /** * a setting to specify currency usage which determines currency digit * and rounding for standard usage, for example: "50.00 NT$" * used as DEFAULT value * @stable ICU 54 */ UCURR_USAGE_STANDARD=0, /** * a setting to specify currency usage which determines currency digit * and rounding for cash usage, for example: "50 NT$" * @stable ICU 54 */ UCURR_USAGE_CASH=1, #ifndef U_HIDE_DEPRECATED_API /** * One higher than the last enum UCurrencyUsage constant. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. */ UCURR_USAGE_COUNT=2 #endif // U_HIDE_DEPRECATED_API }; /** Currency Usage used for Decimal Format */ typedef enum UCurrencyUsage UCurrencyUsage; /** * Finds a currency code for the given locale. * @param locale the locale for which to retrieve a currency code. * Currency can be specified by the "currency" keyword * in which case it overrides the default currency code * @param buff fill in buffer. Can be NULL for preflighting. * @param buffCapacity capacity of the fill in buffer. Can be 0 for * preflighting. If it is non-zero, the buff parameter * must not be NULL. * @param ec error code * @return length of the currency string. It should always be 3. If 0, * currency couldn't be found or the input values are * invalid. * @stable ICU 2.8 */ U_CAPI int32_t U_EXPORT2 ucurr_forLocale(const char* locale, UChar* buff, int32_t buffCapacity, UErrorCode* ec); /** * Selector constants for ucurr_getName(). * * @see ucurr_getName * @stable ICU 2.6 */ typedef enum UCurrNameStyle { /** * Selector for ucurr_getName indicating a symbolic name for a * currency, such as "$" for USD. * @stable ICU 2.6 */ UCURR_SYMBOL_NAME, /** * Selector for ucurr_getName indicating the long name for a * currency, such as "US Dollar" for USD. * @stable ICU 2.6 */ UCURR_LONG_NAME, /** * Selector for getName() indicating the narrow currency symbol. * The narrow currency symbol is similar to the regular currency * symbol, but it always takes the shortest form: for example, * "$" instead of "US$" for USD in en-CA. * * @stable ICU 61 */ UCURR_NARROW_SYMBOL_NAME, /** * Selector for getName() indicating the formal currency symbol. * The formal currency symbol is similar to the regular currency * symbol, but it always takes the form used in formal settings * such as banking; for example, "NT$" instead of "$" for TWD in zh-TW. * * @stable ICU 68 */ UCURR_FORMAL_SYMBOL_NAME, /** * Selector for getName() indicating the variant currency symbol. * The variant symbol for a currency is an alternative symbol * that is not necessarily as widely used as the regular symbol. * * @stable ICU 68 */ UCURR_VARIANT_SYMBOL_NAME } UCurrNameStyle; #if !UCONFIG_NO_SERVICE /** * @stable ICU 2.6 */ typedef const void* UCurrRegistryKey; /** * Register an (existing) ISO 4217 currency code for the given locale. * Only the country code and the two variants EURO and PRE_EURO are * recognized. * @param isoCode the three-letter ISO 4217 currency code * @param locale the locale for which to register this currency code * @param status the in/out status code * @return a registry key that can be used to unregister this currency code, or NULL * if there was an error. * @stable ICU 2.6 */ U_CAPI UCurrRegistryKey U_EXPORT2 ucurr_register(const UChar* isoCode, const char* locale, UErrorCode* status); /** * Unregister the previously-registered currency definitions using the * URegistryKey returned from ucurr_register. Key becomes invalid after * a successful call and should not be used again. Any currency * that might have been hidden by the original ucurr_register call is * restored. * @param key the registry key returned by a previous call to ucurr_register * @param status the in/out status code, no special meanings are assigned * @return true if the currency for this key was successfully unregistered * @stable ICU 2.6 */ U_CAPI UBool U_EXPORT2 ucurr_unregister(UCurrRegistryKey key, UErrorCode* status); #endif /* UCONFIG_NO_SERVICE */ /** * Returns the display name for the given currency in the * given locale. For example, the display name for the USD * currency object in the en_US locale is "$". * @param currency null-terminated 3-letter ISO 4217 code * @param locale locale in which to display currency * @param nameStyle selector for which kind of name to return * @param isChoiceFormat always set to false, or can be NULL; * display names are static strings; * since ICU 4.4, ChoiceFormat patterns are no longer supported * @param len fill-in parameter to receive length of result * @param ec error code * @return pointer to display string of 'len' UChars. If the resource * data contains no entry for 'currency', then 'currency' itself is * returned. * @stable ICU 2.6 */ U_CAPI const UChar* U_EXPORT2 ucurr_getName(const UChar* currency, const char* locale, UCurrNameStyle nameStyle, UBool* isChoiceFormat, int32_t* len, UErrorCode* ec); /** * Returns the plural name for the given currency in the * given locale. For example, the plural name for the USD * currency object in the en_US locale is "US dollar" or "US dollars". * @param currency null-terminated 3-letter ISO 4217 code * @param locale locale in which to display currency * @param isChoiceFormat always set to false, or can be NULL; * display names are static strings; * since ICU 4.4, ChoiceFormat patterns are no longer supported * @param pluralCount plural count * @param len fill-in parameter to receive length of result * @param ec error code * @return pointer to display string of 'len' UChars. If the resource * data contains no entry for 'currency', then 'currency' itself is * returned. * @stable ICU 4.2 */ U_CAPI const UChar* U_EXPORT2 ucurr_getPluralName(const UChar* currency, const char* locale, UBool* isChoiceFormat, const char* pluralCount, int32_t* len, UErrorCode* ec); /** * Returns the number of the number of fraction digits that should * be displayed for the given currency. * This is equivalent to ucurr_getDefaultFractionDigitsForUsage(currency,UCURR_USAGE_STANDARD,ec); * * Important: The number of fraction digits for a given currency is NOT * guaranteed to be constant across versions of ICU or CLDR. For example, * do NOT use this value as a mechanism for deciding the magnitude used * to store currency values in a database. You should use this value for * display purposes only. * * @param currency null-terminated 3-letter ISO 4217 code * @param ec input-output error code * @return a non-negative number of fraction digits to be * displayed, or 0 if there is an error * @stable ICU 3.0 */ U_CAPI int32_t U_EXPORT2 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec); /** * Returns the number of the number of fraction digits that should * be displayed for the given currency with usage. * * Important: The number of fraction digits for a given currency is NOT * guaranteed to be constant across versions of ICU or CLDR. For example, * do NOT use this value as a mechanism for deciding the magnitude used * to store currency values in a database. You should use this value for * display purposes only. * * @param currency null-terminated 3-letter ISO 4217 code * @param usage enum usage for the currency * @param ec input-output error code * @return a non-negative number of fraction digits to be * displayed, or 0 if there is an error * @stable ICU 54 */ U_CAPI int32_t U_EXPORT2 ucurr_getDefaultFractionDigitsForUsage(const UChar* currency, const UCurrencyUsage usage, UErrorCode* ec); /** * Returns the rounding increment for the given currency, or 0.0 if no * rounding is done by the currency. * This is equivalent to ucurr_getRoundingIncrementForUsage(currency,UCURR_USAGE_STANDARD,ec); * @param currency null-terminated 3-letter ISO 4217 code * @param ec input-output error code * @return the non-negative rounding increment, or 0.0 if none, * or 0.0 if there is an error * @stable ICU 3.0 */ U_CAPI double U_EXPORT2 ucurr_getRoundingIncrement(const UChar* currency, UErrorCode* ec); /** * Returns the rounding increment for the given currency, or 0.0 if no * rounding is done by the currency given usage. * @param currency null-terminated 3-letter ISO 4217 code * @param usage enum usage for the currency * @param ec input-output error code * @return the non-negative rounding increment, or 0.0 if none, * or 0.0 if there is an error * @stable ICU 54 */ U_CAPI double U_EXPORT2 ucurr_getRoundingIncrementForUsage(const UChar* currency, const UCurrencyUsage usage, UErrorCode* ec); /** * Selector constants for ucurr_openCurrencies(). * * @see ucurr_openCurrencies * @stable ICU 3.2 */ typedef enum UCurrCurrencyType { /** * Select all ISO-4217 currency codes. * @stable ICU 3.2 */ UCURR_ALL = INT32_MAX, /** * Select only ISO-4217 commonly used currency codes. * These currencies can be found in common use, and they usually have * bank notes or coins associated with the currency code. * This does not include fund codes, precious metals and other * various ISO-4217 codes limited to special financial products. * @stable ICU 3.2 */ UCURR_COMMON = 1, /** * Select ISO-4217 uncommon currency codes. * These codes respresent fund codes, precious metals and other * various ISO-4217 codes limited to special financial products. * A fund code is a monetary resource associated with a currency. * @stable ICU 3.2 */ UCURR_UNCOMMON = 2, /** * Select only deprecated ISO-4217 codes. * These codes are no longer in general public use. * @stable ICU 3.2 */ UCURR_DEPRECATED = 4, /** * Select only non-deprecated ISO-4217 codes. * These codes are in general public use. * @stable ICU 3.2 */ UCURR_NON_DEPRECATED = 8 } UCurrCurrencyType; /** * Provides a UEnumeration object for listing ISO-4217 codes. * @param currType You can use one of several UCurrCurrencyType values for this * variable. You can also | (or) them together to get a specific list of * currencies. Most people will want to use the (UCURR_COMMON|UCURR_NON_DEPRECATED) value to * get a list of current currencies. * @param pErrorCode Error code * @stable ICU 3.2 */ U_CAPI UEnumeration * U_EXPORT2 ucurr_openISOCurrencies(uint32_t currType, UErrorCode *pErrorCode); /** * Queries if the given ISO 4217 3-letter code is available on the specified date range. * * Note: For checking availability of a currency on a specific date, specify the date on both 'from' and 'to' * * When 'from' is U_DATE_MIN and 'to' is U_DATE_MAX, this method checks if the specified currency is available any time. * If 'from' and 'to' are same UDate value, this method checks if the specified currency is available on that date. * * @param isoCode * The ISO 4217 3-letter code. * * @param from * The lower bound of the date range, inclusive. When 'from' is U_DATE_MIN, check the availability * of the currency any date before 'to' * * @param to * The upper bound of the date range, inclusive. When 'to' is U_DATE_MAX, check the availability of * the currency any date after 'from' * * @param errorCode * ICU error code * * @return true if the given ISO 4217 3-letter code is supported on the specified date range. * * @stable ICU 4.8 */ U_CAPI UBool U_EXPORT2 ucurr_isAvailable(const UChar* isoCode, UDate from, UDate to, UErrorCode* errorCode); /** * Finds the number of valid currency codes for the * given locale and date. * @param locale the locale for which to retrieve the * currency count. * @param date the date for which to retrieve the * currency count for the given locale. * @param ec error code * @return the number of currency codes for the * given locale and date. If 0, currency * codes couldn't be found for the input * values are invalid. * @stable ICU 4.0 */ U_CAPI int32_t U_EXPORT2 ucurr_countCurrencies(const char* locale, UDate date, UErrorCode* ec); /** * Finds a currency code for the given locale and date * @param locale the locale for which to retrieve a currency code. * Currency can be specified by the "currency" keyword * in which case it overrides the default currency code * @param date the date for which to retrieve a currency code for * the given locale. * @param index the index within the available list of currency codes * for the given locale on the given date. * @param buff fill in buffer. Can be NULL for preflighting. * @param buffCapacity capacity of the fill in buffer. Can be 0 for * preflighting. If it is non-zero, the buff parameter * must not be NULL. * @param ec error code * @return length of the currency string. It should always be 3. * If 0, currency couldn't be found or the input values are * invalid. * @stable ICU 4.0 */ U_CAPI int32_t U_EXPORT2 ucurr_forLocaleAndDate(const char* locale, UDate date, int32_t index, UChar* buff, int32_t buffCapacity, UErrorCode* ec); /** * Given a key and a locale, returns an array of string values in a preferred * order that would make a difference. These are all and only those values where * the open (creation) of the service with the locale formed from the input locale * plus input keyword and that value has different behavior than creation with the * input locale alone. * @param key one of the keys supported by this service. For now, only * "currency" is supported. * @param locale the locale * @param commonlyUsed if set to true it will return only commonly used values * with the given locale in preferred order. Otherwise, * it will return all the available values for the locale. * @param status error status * @return a string enumeration over keyword values for the given key and the locale. * @stable ICU 4.2 */ U_CAPI UEnumeration* U_EXPORT2 ucurr_getKeywordValuesForLocale(const char* key, const char* locale, UBool commonlyUsed, UErrorCode* status); /** * Returns the ISO 4217 numeric code for the currency. * <p>Note: If the ISO 4217 numeric code is not assigned for the currency or * the currency is unknown, this function returns 0. * * @param currency null-terminated 3-letter ISO 4217 code * @return The ISO 4217 numeric code of the currency * @stable ICU 49 */ U_CAPI int32_t U_EXPORT2 ucurr_getNumericCode(const UChar* currency); #endif /* #if !UCONFIG_NO_FORMATTING */ #endif