X7ROOT File Manager
Current Path:
/opt/alt/libicu65/usr/include/unicode
opt
/
alt
/
libicu65
/
usr
/
include
/
unicode
/
ðŸ“
..
📄
alphaindex.h
(26.48 KB)
📄
appendable.h
(8.49 KB)
📄
basictz.h
(9.15 KB)
📄
brkiter.h
(27.8 KB)
📄
bytestream.h
(9.6 KB)
📄
bytestrie.h
(20.77 KB)
📄
bytestriebuilder.h
(7.08 KB)
📄
calendar.h
(105.74 KB)
📄
caniter.h
(7.43 KB)
📄
casemap.h
(25.33 KB)
📄
char16ptr.h
(7.22 KB)
📄
chariter.h
(24.05 KB)
📄
choicfmt.h
(23.91 KB)
📄
coleitr.h
(13.76 KB)
📄
coll.h
(56.23 KB)
📄
compactdecimalformat.h
(6.88 KB)
📄
curramt.h
(3.76 KB)
📄
currpinf.h
(7.3 KB)
📄
currunit.h
(4.05 KB)
📄
datefmt.h
(40.67 KB)
📄
dbbi.h
(1.19 KB)
📄
dcfmtsym.h
(20.13 KB)
📄
decimfmt.h
(87.38 KB)
📄
docmain.h
(6.97 KB)
📄
dtfmtsym.h
(37.7 KB)
📄
dtintrv.h
(3.84 KB)
📄
dtitvfmt.h
(46.63 KB)
📄
dtitvinf.h
(18.51 KB)
📄
dtptngen.h
(25.08 KB)
📄
dtrule.h
(8.68 KB)
📄
edits.h
(20.74 KB)
📄
enumset.h
(2.08 KB)
📄
errorcode.h
(4.84 KB)
📄
fieldpos.h
(8.69 KB)
📄
filteredbrk.h
(5.37 KB)
📄
fmtable.h
(24.42 KB)
📄
format.h
(12.5 KB)
📄
formattedvalue.h
(10.27 KB)
📄
fpositer.h
(3.04 KB)
📄
gender.h
(3.33 KB)
📄
gregocal.h
(31.71 KB)
📄
icudataver.h
(1.03 KB)
📄
icuplug.h
(11.88 KB)
📄
idna.h
(12.7 KB)
📄
listformatter.h
(9.47 KB)
📄
localebuilder.h
(11.27 KB)
📄
localematcher.h
(22.5 KB)
📄
localpointer.h
(19.69 KB)
📄
locdspnm.h
(7.12 KB)
📄
locid.h
(47.4 KB)
📄
measfmt.h
(11.33 KB)
📄
measunit.h
(93.31 KB)
📄
measure.h
(4.32 KB)
📄
messagepattern.h
(33.71 KB)
📄
msgfmt.h
(44.11 KB)
📄
normalizer2.h
(34.03 KB)
📄
normlzr.h
(30.94 KB)
📄
nounit.h
(2.69 KB)
📄
numberformatter.h
(86.31 KB)
📄
numberrangeformatter.h
(30.14 KB)
📄
numfmt.h
(49.81 KB)
📄
numsys.h
(7.19 KB)
📄
parseerr.h
(3.08 KB)
📄
parsepos.h
(5.56 KB)
📄
platform.h
(28.08 KB)
📄
plurfmt.h
(25.2 KB)
📄
plurrule.h
(18.39 KB)
📄
ptypes.h
(3.49 KB)
📄
putil.h
(6.33 KB)
📄
rbbi.h
(26.58 KB)
📄
rbnf.h
(48.73 KB)
📄
rbtz.h
(15.6 KB)
📄
regex.h
(84.36 KB)
📄
region.h
(9.18 KB)
📄
reldatefmt.h
(22.62 KB)
📄
rep.h
(9.37 KB)
📄
resbund.h
(18.07 KB)
📄
schriter.h
(6.32 KB)
📄
scientificnumberformatter.h
(6.4 KB)
📄
search.h
(22.22 KB)
📄
selfmt.h
(14.3 KB)
📄
simpleformatter.h
(12.59 KB)
📄
simpletz.h
(45.44 KB)
📄
smpdtfmt.h
(70.97 KB)
📄
sortkey.h
(11.18 KB)
📄
std_string.h
(1.05 KB)
📄
strenum.h
(9.92 KB)
📄
stringoptions.h
(5.79 KB)
📄
stringpiece.h
(7.38 KB)
📄
stringtriebuilder.h
(15.33 KB)
📄
stsearch.h
(21.3 KB)
📄
symtable.h
(4.27 KB)
📄
tblcoll.h
(36.61 KB)
📄
timezone.h
(41.02 KB)
📄
tmunit.h
(3.38 KB)
📄
tmutamt.h
(4.9 KB)
📄
tmutfmt.h
(7.85 KB)
📄
translit.h
(65.82 KB)
📄
tzfmt.h
(42.89 KB)
📄
tznames.h
(16.85 KB)
📄
tzrule.h
(35.37 KB)
📄
tztrans.h
(6.12 KB)
📄
ubidi.h
(89.56 KB)
📄
ubiditransform.h
(12.65 KB)
📄
ubrk.h
(23.97 KB)
📄
ucal.h
(56.9 KB)
📄
ucasemap.h
(15.18 KB)
📄
ucat.h
(5.36 KB)
📄
uchar.h
(140.56 KB)
📄
ucharstrie.h
(22.58 KB)
📄
ucharstriebuilder.h
(7.21 KB)
📄
uchriter.h
(13.2 KB)
📄
uclean.h
(11.21 KB)
📄
ucnv.h
(83.09 KB)
📄
ucnv_cb.h
(6.59 KB)
📄
ucnv_err.h
(20.99 KB)
📄
ucnvsel.h
(6.14 KB)
📄
ucol.h
(61.46 KB)
📄
ucoleitr.h
(9.46 KB)
📄
uconfig.h
(12.07 KB)
📄
ucpmap.h
(5.53 KB)
📄
ucptrie.h
(22.46 KB)
📄
ucsdet.h
(14.67 KB)
📄
ucurr.h
(16.12 KB)
📄
udat.h
(60.88 KB)
📄
udata.h
(15.56 KB)
📄
udateintervalformat.h
(10.03 KB)
📄
udatpg.h
(26.01 KB)
📄
udisplaycontext.h
(5.89 KB)
📄
uenum.h
(7.78 KB)
📄
ufieldpositer.h
(4.36 KB)
📄
uformattable.h
(10.94 KB)
📄
uformattedvalue.h
(12.14 KB)
📄
ugender.h
(2 KB)
📄
uidna.h
(33.37 KB)
📄
uiter.h
(22.77 KB)
📄
uldnames.h
(10.45 KB)
📄
ulistformatter.h
(8.83 KB)
📄
uloc.h
(52.54 KB)
📄
ulocdata.h
(11.26 KB)
📄
umachine.h
(14.53 KB)
📄
umisc.h
(1.33 KB)
📄
umsg.h
(24.23 KB)
📄
umutablecptrie.h
(8.24 KB)
📄
unifilt.h
(3.96 KB)
📄
unifunct.h
(4.04 KB)
📄
unimatch.h
(6.1 KB)
📄
unirepl.h
(3.38 KB)
📄
uniset.h
(64.9 KB)
📄
unistr.h
(170.43 KB)
📄
unorm.h
(20.52 KB)
📄
unorm2.h
(24.66 KB)
📄
unum.h
(53.62 KB)
📄
unumberformatter.h
(25.36 KB)
📄
unumsys.h
(7.21 KB)
📄
uobject.h
(10.68 KB)
📄
upluralrules.h
(7.88 KB)
📄
uregex.h
(72.05 KB)
📄
uregion.h
(9.84 KB)
📄
ureldatefmt.h
(17.26 KB)
📄
urename.h
(130.97 KB)
📄
urep.h
(5.38 KB)
📄
ures.h
(36.54 KB)
📄
uscript.h
(26.87 KB)
📄
usearch.h
(38.12 KB)
📄
uset.h
(40 KB)
📄
usetiter.h
(9.55 KB)
📄
ushape.h
(18 KB)
📄
uspoof.h
(65.9 KB)
📄
usprep.h
(8.14 KB)
📄
ustdio.h
(38.54 KB)
📄
ustream.h
(1.89 KB)
📄
ustring.h
(72.47 KB)
📄
ustringtrie.h
(3.15 KB)
📄
utext.h
(58.13 KB)
📄
utf.h
(7.86 KB)
📄
utf16.h
(23.32 KB)
📄
utf32.h
(763 B)
📄
utf8.h
(30.96 KB)
📄
utf_old.h
(45.83 KB)
📄
utmscale.h
(13.78 KB)
📄
utrace.h
(15.73 KB)
📄
utrans.h
(25.52 KB)
📄
utypes.h
(30.74 KB)
📄
uvernum.h
(6.67 KB)
📄
uversion.h
(6 KB)
📄
vtzone.h
(20.3 KB)
Editing: ucurr.h
// © 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_STABLE 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 } 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE 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_STABLE int32_t U_EXPORT2 ucurr_getNumericCode(const UChar* currency); #endif /* #if !UCONFIG_NO_FORMATTING */ #endif
Upload File
Create Folder