Linux premium82.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
LiteSpeed
Server IP : 185.61.154.194 & Your IP : 216.73.216.75
Domains :
Cant Read [ /etc/named.conf ]
User : evicodqw
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
alt-nodejs22 /
root /
usr /
include /
unicode /
Delete
Unzip
Name
Size
Permission
Date
Action
alphaindex.h
26.54
KB
-rw-r--r--
2025-06-06 11:26
appendable.h
8.54
KB
-rw-r--r--
2025-06-06 11:26
basictz.h
9.99
KB
-rw-r--r--
2025-06-06 11:26
brkiter.h
27.84
KB
-rw-r--r--
2025-06-06 11:26
bytestream.h
10.77
KB
-rw-r--r--
2025-06-06 11:26
bytestrie.h
20.83
KB
-rw-r--r--
2025-06-06 11:26
bytestriebuilder.h
7.48
KB
-rw-r--r--
2025-06-06 11:26
calendar.h
107.54
KB
-rw-r--r--
2025-06-06 11:26
caniter.h
7.53
KB
-rw-r--r--
2025-06-06 11:26
casemap.h
25.42
KB
-rw-r--r--
2025-06-06 11:26
char16ptr.h
10.79
KB
-rw-r--r--
2025-06-06 11:26
chariter.h
23.79
KB
-rw-r--r--
2025-06-06 11:26
choicfmt.h
23.99
KB
-rw-r--r--
2025-06-06 11:26
coleitr.h
13.78
KB
-rw-r--r--
2025-06-06 11:26
coll.h
59.6
KB
-rw-r--r--
2025-06-06 11:26
compactdecimalformat.h
6.88
KB
-rw-r--r--
2025-06-06 11:26
curramt.h
3.67
KB
-rw-r--r--
2025-06-06 11:26
currpinf.h
7.3
KB
-rw-r--r--
2025-06-06 11:26
currunit.h
4.02
KB
-rw-r--r--
2025-06-06 11:26
datefmt.h
40.7
KB
-rw-r--r--
2025-06-06 11:26
dbbi.h
1.19
KB
-rw-r--r--
2025-06-06 11:26
dcfmtsym.h
20.96
KB
-rw-r--r--
2025-06-06 11:26
decimfmt.h
87.46
KB
-rw-r--r--
2025-06-06 11:26
displayoptions.h
7.08
KB
-rw-r--r--
2025-06-06 11:26
docmain.h
7.6
KB
-rw-r--r--
2025-06-06 11:26
dtfmtsym.h
38.22
KB
-rw-r--r--
2025-06-06 11:26
dtintrv.h
3.84
KB
-rw-r--r--
2025-06-06 11:26
dtitvfmt.h
48.87
KB
-rw-r--r--
2025-06-06 11:26
dtitvinf.h
18.63
KB
-rw-r--r--
2025-06-06 11:26
dtptngen.h
28.05
KB
-rw-r--r--
2025-06-06 11:26
dtrule.h
8.66
KB
-rw-r--r--
2025-06-06 11:26
edits.h
20.74
KB
-rw-r--r--
2025-06-06 11:26
enumset.h
2.08
KB
-rw-r--r--
2025-06-06 11:26
errorcode.h
4.84
KB
-rw-r--r--
2025-06-06 11:26
fieldpos.h
8.69
KB
-rw-r--r--
2025-06-06 11:26
filteredbrk.h
5.37
KB
-rw-r--r--
2025-06-06 11:26
fmtable.h
24.37
KB
-rw-r--r--
2025-06-06 11:26
format.h
12.51
KB
-rw-r--r--
2025-06-06 11:26
formattednumber.h
6.28
KB
-rw-r--r--
2025-06-06 11:26
formattedvalue.h
9.75
KB
-rw-r--r--
2025-06-06 11:26
fpositer.h
3.03
KB
-rw-r--r--
2025-06-06 11:26
gender.h
3.35
KB
-rw-r--r--
2025-06-06 11:26
gregocal.h
30.32
KB
-rw-r--r--
2025-06-06 11:26
icudataver.h
1.02
KB
-rw-r--r--
2025-06-06 11:26
icuplug.h
12.1
KB
-rw-r--r--
2025-06-06 11:26
idna.h
12.93
KB
-rw-r--r--
2025-06-06 11:26
listformatter.h
8.59
KB
-rw-r--r--
2025-06-06 11:26
localebuilder.h
11.08
KB
-rw-r--r--
2025-06-06 11:26
localematcher.h
26.86
KB
-rw-r--r--
2025-06-06 11:26
localpointer.h
19.55
KB
-rw-r--r--
2025-06-06 11:26
locdspnm.h
7.12
KB
-rw-r--r--
2025-06-06 11:26
locid.h
48.62
KB
-rw-r--r--
2025-06-06 11:26
measfmt.h
11.41
KB
-rw-r--r--
2025-06-06 11:26
measunit.h
111.44
KB
-rw-r--r--
2025-06-06 11:26
measure.h
4.63
KB
-rw-r--r--
2025-06-06 11:26
messageformat2.h
21.05
KB
-rw-r--r--
2025-06-06 11:26
messageformat2_arguments.h
4.49
KB
-rw-r--r--
2025-06-06 11:26
messageformat2_data_model.h
101.89
KB
-rw-r--r--
2025-06-06 11:26
messageformat2_data_model_names.h
784
B
-rw-r--r--
2025-06-06 11:26
messageformat2_formattable.h
38.36
KB
-rw-r--r--
2025-06-06 11:26
messageformat2_function_registry.h
18.07
KB
-rw-r--r--
2025-06-06 11:26
messagepattern.h
33.79
KB
-rw-r--r--
2025-06-06 11:26
msgfmt.h
44.2
KB
-rw-r--r--
2025-06-06 11:26
normalizer2.h
34.68
KB
-rw-r--r--
2025-06-06 11:26
normlzr.h
30.79
KB
-rw-r--r--
2025-06-06 11:26
nounit.h
2.24
KB
-rw-r--r--
2025-06-06 11:26
numberformatter.h
90.69
KB
-rw-r--r--
2025-06-06 11:26
numberrangeformatter.h
26
KB
-rw-r--r--
2025-06-06 11:26
numfmt.h
50.16
KB
-rw-r--r--
2025-06-06 11:26
numsys.h
7.22
KB
-rw-r--r--
2025-06-06 11:26
parseerr.h
3.08
KB
-rw-r--r--
2025-06-06 11:26
parsepos.h
5.56
KB
-rw-r--r--
2025-06-06 11:26
platform.h
27.18
KB
-rw-r--r--
2025-06-06 11:26
plurfmt.h
25.07
KB
-rw-r--r--
2025-06-06 11:26
plurrule.h
20.63
KB
-rw-r--r--
2025-06-06 11:26
ptypes.h
2.16
KB
-rw-r--r--
2025-06-06 11:26
putil.h
6.32
KB
-rw-r--r--
2025-06-06 11:26
rbbi.h
32.04
KB
-rw-r--r--
2025-06-06 11:26
rbnf.h
56.16
KB
-rw-r--r--
2025-06-06 11:26
rbtz.h
15.75
KB
-rw-r--r--
2025-06-06 11:26
regex.h
84.45
KB
-rw-r--r--
2025-06-06 11:26
region.h
9.2
KB
-rw-r--r--
2025-06-06 11:26
reldatefmt.h
22.48
KB
-rw-r--r--
2025-06-06 11:26
rep.h
9.38
KB
-rw-r--r--
2025-06-06 11:26
resbund.h
18.02
KB
-rw-r--r--
2025-06-06 11:26
schriter.h
6.09
KB
-rw-r--r--
2025-06-06 11:26
scientificnumberformatter.h
6.44
KB
-rw-r--r--
2025-06-06 11:26
search.h
22.21
KB
-rw-r--r--
2025-06-06 11:26
selfmt.h
14.35
KB
-rw-r--r--
2025-06-06 11:26
simpleformatter.h
12.6
KB
-rw-r--r--
2025-06-06 11:26
simplenumberformatter.h
8.87
KB
-rw-r--r--
2025-06-06 11:26
simpletz.h
45.62
KB
-rw-r--r--
2025-06-06 11:26
smpdtfmt.h
57.06
KB
-rw-r--r--
2025-06-06 11:26
sortkey.h
11.13
KB
-rw-r--r--
2025-06-06 11:26
std_string.h
1.05
KB
-rw-r--r--
2025-06-06 11:26
strenum.h
9.96
KB
-rw-r--r--
2025-06-06 11:26
stringoptions.h
5.79
KB
-rw-r--r--
2025-06-06 11:26
stringpiece.h
10.28
KB
-rw-r--r--
2025-06-06 11:26
stringtriebuilder.h
15.53
KB
-rw-r--r--
2025-06-06 11:26
stsearch.h
21.43
KB
-rw-r--r--
2025-06-06 11:26
symtable.h
4.28
KB
-rw-r--r--
2025-06-06 11:26
tblcoll.h
36.96
KB
-rw-r--r--
2025-06-06 11:26
timezone.h
45.59
KB
-rw-r--r--
2025-06-06 11:26
tmunit.h
3.4
KB
-rw-r--r--
2025-06-06 11:26
tmutamt.h
4.9
KB
-rw-r--r--
2025-06-06 11:26
tmutfmt.h
7.42
KB
-rw-r--r--
2025-06-06 11:26
translit.h
65.81
KB
-rw-r--r--
2025-06-06 11:26
tzfmt.h
42.95
KB
-rw-r--r--
2025-06-06 11:26
tznames.h
16.85
KB
-rw-r--r--
2025-06-06 11:26
tzrule.h
34.81
KB
-rw-r--r--
2025-06-06 11:26
tztrans.h
6.11
KB
-rw-r--r--
2025-06-06 11:26
ubidi.h
89.61
KB
-rw-r--r--
2025-06-06 11:26
ubiditransform.h
12.71
KB
-rw-r--r--
2025-06-06 11:26
ubrk.h
24.43
KB
-rw-r--r--
2025-06-06 11:26
ucal.h
63.96
KB
-rw-r--r--
2025-06-06 11:26
ucasemap.h
15.27
KB
-rw-r--r--
2025-06-06 11:26
ucat.h
5.35
KB
-rw-r--r--
2025-06-06 11:26
uchar.h
151.74
KB
-rw-r--r--
2025-06-06 11:26
ucharstrie.h
22.59
KB
-rw-r--r--
2025-06-06 11:26
ucharstriebuilder.h
7.48
KB
-rw-r--r--
2025-06-06 11:26
uchriter.h
13.24
KB
-rw-r--r--
2025-06-06 11:26
uclean.h
11.21
KB
-rw-r--r--
2025-06-06 11:26
ucnv.h
83.34
KB
-rw-r--r--
2025-06-06 11:26
ucnv_cb.h
6.58
KB
-rw-r--r--
2025-06-06 11:26
ucnv_err.h
20.98
KB
-rw-r--r--
2025-06-06 11:26
ucnvsel.h
6.24
KB
-rw-r--r--
2025-06-06 11:26
ucol.h
67.28
KB
-rw-r--r--
2025-06-06 11:26
ucoleitr.h
9.82
KB
-rw-r--r--
2025-06-06 11:26
uconfig.h
12.56
KB
-rw-r--r--
2025-06-06 11:26
ucpmap.h
5.54
KB
-rw-r--r--
2025-06-06 11:26
ucptrie.h
22.51
KB
-rw-r--r--
2025-06-06 11:26
ucsdet.h
14.69
KB
-rw-r--r--
2025-06-06 11:26
ucurr.h
16.72
KB
-rw-r--r--
2025-06-06 11:26
udat.h
62.36
KB
-rw-r--r--
2025-06-06 11:26
udata.h
15.63
KB
-rw-r--r--
2025-06-06 11:26
udateintervalformat.h
11.93
KB
-rw-r--r--
2025-06-06 11:26
udatpg.h
30.13
KB
-rw-r--r--
2025-06-06 11:26
udisplaycontext.h
5.94
KB
-rw-r--r--
2025-06-06 11:26
udisplayoptions.h
8.86
KB
-rw-r--r--
2025-06-06 11:26
uenum.h
7.79
KB
-rw-r--r--
2025-06-06 11:26
ufieldpositer.h
4.41
KB
-rw-r--r--
2025-06-06 11:26
uformattable.h
10.97
KB
-rw-r--r--
2025-06-06 11:26
uformattednumber.h
8.09
KB
-rw-r--r--
2025-06-06 11:26
uformattedvalue.h
12.25
KB
-rw-r--r--
2025-06-06 11:26
ugender.h
2.06
KB
-rw-r--r--
2025-06-06 11:26
uidna.h
34.12
KB
-rw-r--r--
2025-06-06 11:26
uiter.h
22.75
KB
-rw-r--r--
2025-06-06 11:26
uldnames.h
10.48
KB
-rw-r--r--
2025-06-06 11:26
ulistformatter.h
10.78
KB
-rw-r--r--
2025-06-06 11:26
uloc.h
55.38
KB
-rw-r--r--
2025-06-06 11:26
ulocale.h
6.31
KB
-rw-r--r--
2025-06-06 11:26
ulocbuilder.h
16.69
KB
-rw-r--r--
2025-06-06 11:26
ulocdata.h
11.3
KB
-rw-r--r--
2025-06-06 11:26
umachine.h
14.59
KB
-rw-r--r--
2025-06-06 11:26
umisc.h
1.34
KB
-rw-r--r--
2025-06-06 11:26
umsg.h
24.25
KB
-rw-r--r--
2025-06-06 11:26
umutablecptrie.h
8.3
KB
-rw-r--r--
2025-06-06 11:26
unifilt.h
4
KB
-rw-r--r--
2025-06-06 11:26
unifunct.h
4.05
KB
-rw-r--r--
2025-06-06 11:26
unimatch.h
6.1
KB
-rw-r--r--
2025-06-06 11:26
unirepl.h
3.38
KB
-rw-r--r--
2025-06-06 11:26
uniset.h
70.4
KB
-rw-r--r--
2025-06-06 11:26
unistr.h
182.08
KB
-rw-r--r--
2025-06-06 11:26
unorm.h
20.55
KB
-rw-r--r--
2025-06-06 11:26
unorm2.h
25.66
KB
-rw-r--r--
2025-06-06 11:26
unum.h
55.16
KB
-rw-r--r--
2025-06-06 11:26
unumberformatter.h
19.68
KB
-rw-r--r--
2025-06-06 11:26
unumberoptions.h
5.23
KB
-rw-r--r--
2025-06-06 11:26
unumberrangeformatter.h
15.35
KB
-rw-r--r--
2025-06-06 11:26
unumsys.h
7.26
KB
-rw-r--r--
2025-06-06 11:26
uobject.h
10.66
KB
-rw-r--r--
2025-06-06 11:26
upluralrules.h
8.79
KB
-rw-r--r--
2025-06-06 11:26
uregex.h
71.99
KB
-rw-r--r--
2025-06-06 11:26
uregion.h
9.81
KB
-rw-r--r--
2025-06-06 11:26
ureldatefmt.h
16.98
KB
-rw-r--r--
2025-06-06 11:26
urename.h
141.99
KB
-rw-r--r--
2025-06-06 11:26
urep.h
5.38
KB
-rw-r--r--
2025-06-06 11:26
ures.h
36.65
KB
-rw-r--r--
2025-06-06 11:26
uscript.h
28.51
KB
-rw-r--r--
2025-06-06 11:26
usearch.h
39.21
KB
-rw-r--r--
2025-06-06 11:26
uset.h
63.08
KB
-rw-r--r--
2025-06-06 11:26
usetiter.h
9.63
KB
-rw-r--r--
2025-06-06 11:26
ushape.h
18
KB
-rw-r--r--
2025-06-06 11:26
usimplenumberformatter.h
7.31
KB
-rw-r--r--
2025-06-06 11:26
uspoof.h
80
KB
-rw-r--r--
2025-06-06 11:26
usprep.h
8.19
KB
-rw-r--r--
2025-06-06 11:26
ustdio.h
38.58
KB
-rw-r--r--
2025-06-06 11:26
ustream.h
1.89
KB
-rw-r--r--
2025-06-06 11:26
ustring.h
72.16
KB
-rw-r--r--
2025-06-06 11:26
ustringtrie.h
3.15
KB
-rw-r--r--
2025-06-06 11:26
utext.h
58.1
KB
-rw-r--r--
2025-06-06 11:26
utf.h
7.87
KB
-rw-r--r--
2025-06-06 11:26
utf16.h
23.35
KB
-rw-r--r--
2025-06-06 11:26
utf32.h
763
B
-rw-r--r--
2025-06-06 11:26
utf8.h
30.83
KB
-rw-r--r--
2025-06-06 11:26
utf_old.h
45.8
KB
-rw-r--r--
2025-06-06 11:26
utmscale.h
13.78
KB
-rw-r--r--
2025-06-06 11:26
utrace.h
17.18
KB
-rw-r--r--
2025-06-06 11:26
utrans.h
25.54
KB
-rw-r--r--
2025-06-06 11:26
utypes.h
34.48
KB
-rw-r--r--
2025-06-06 11:26
uvernum.h
6.33
KB
-rw-r--r--
2025-06-06 11:26
uversion.h
8.21
KB
-rw-r--r--
2025-06-06 11:26
vtzone.h
20.68
KB
-rw-r--r--
2025-06-06 11:26
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