X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs20/root/usr/include/unicode
opt
/
alt
/
alt-nodejs20
/
root
/
usr
/
include
/
unicode
/
๐
..
๐
alphaindex.h
(26.54 KB)
๐
appendable.h
(8.54 KB)
๐
basictz.h
(9.99 KB)
๐
brkiter.h
(27.84 KB)
๐
bytestream.h
(10.77 KB)
๐
bytestrie.h
(20.83 KB)
๐
bytestriebuilder.h
(7.48 KB)
๐
calendar.h
(107.83 KB)
๐
caniter.h
(7.53 KB)
๐
casemap.h
(25.42 KB)
๐
char16ptr.h
(9.22 KB)
๐
chariter.h
(23.79 KB)
๐
choicfmt.h
(23.99 KB)
๐
coleitr.h
(13.78 KB)
๐
coll.h
(59.6 KB)
๐
compactdecimalformat.h
(6.88 KB)
๐
curramt.h
(3.67 KB)
๐
currpinf.h
(7.3 KB)
๐
currunit.h
(4.02 KB)
๐
datefmt.h
(40.7 KB)
๐
dbbi.h
(1.19 KB)
๐
dcfmtsym.h
(20.95 KB)
๐
decimfmt.h
(87.46 KB)
๐
displayoptions.h
(7.08 KB)
๐
docmain.h
(7.6 KB)
๐
dtfmtsym.h
(38.21 KB)
๐
dtintrv.h
(3.84 KB)
๐
dtitvfmt.h
(48.87 KB)
๐
dtitvinf.h
(18.63 KB)
๐
dtptngen.h
(28.05 KB)
๐
dtrule.h
(8.66 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.37 KB)
๐
format.h
(12.5 KB)
๐
formattednumber.h
(6.28 KB)
๐
formattedvalue.h
(9.75 KB)
๐
fpositer.h
(3.03 KB)
๐
gender.h
(3.35 KB)
๐
gregocal.h
(30.3 KB)
๐
icudataver.h
(1.02 KB)
๐
icuplug.h
(12.1 KB)
๐
idna.h
(12.93 KB)
๐
listformatter.h
(8.59 KB)
๐
localebuilder.h
(11.08 KB)
๐
localematcher.h
(26.86 KB)
๐
localpointer.h
(19.55 KB)
๐
locdspnm.h
(7.12 KB)
๐
locid.h
(48.4 KB)
๐
measfmt.h
(11.41 KB)
๐
measunit.h
(109.16 KB)
๐
measure.h
(4.63 KB)
๐
messageformat2.h
(21.01 KB)
๐
messageformat2_arguments.h
(4.31 KB)
๐
messageformat2_data_model.h
(101.85 KB)
๐
messageformat2_data_model_names.h
(784 B)
๐
messageformat2_formattable.h
(38.29 KB)
๐
messageformat2_function_registry.h
(18 KB)
๐
messagepattern.h
(33.79 KB)
๐
msgfmt.h
(44.2 KB)
๐
normalizer2.h
(34.68 KB)
๐
normlzr.h
(30.79 KB)
๐
nounit.h
(2.24 KB)
๐
numberformatter.h
(90.74 KB)
๐
numberrangeformatter.h
(26.05 KB)
๐
numfmt.h
(50.16 KB)
๐
numsys.h
(7.22 KB)
๐
parseerr.h
(3.08 KB)
๐
parsepos.h
(5.56 KB)
๐
platform.h
(27.18 KB)
๐
plurfmt.h
(25.07 KB)
๐
plurrule.h
(20.63 KB)
๐
ptypes.h
(2.16 KB)
๐
putil.h
(6.32 KB)
๐
rbbi.h
(32.04 KB)
๐
rbnf.h
(50.53 KB)
๐
rbtz.h
(15.75 KB)
๐
regex.h
(84.45 KB)
๐
region.h
(9.2 KB)
๐
reldatefmt.h
(22.48 KB)
๐
rep.h
(9.38 KB)
๐
resbund.h
(18.03 KB)
๐
schriter.h
(6.09 KB)
๐
scientificnumberformatter.h
(6.44 KB)
๐
search.h
(22.21 KB)
๐
selfmt.h
(14.35 KB)
๐
simpleformatter.h
(12.6 KB)
๐
simplenumberformatter.h
(8.92 KB)
๐
simpletz.h
(45.62 KB)
๐
smpdtfmt.h
(57.06 KB)
๐
sortkey.h
(11.13 KB)
๐
std_string.h
(1.05 KB)
๐
strenum.h
(9.96 KB)
๐
stringoptions.h
(5.79 KB)
๐
stringpiece.h
(10.28 KB)
๐
stringtriebuilder.h
(15.53 KB)
๐
stsearch.h
(21.43 KB)
๐
symtable.h
(4.28 KB)
๐
tblcoll.h
(36.96 KB)
๐
timezone.h
(45.59 KB)
๐
tmunit.h
(3.4 KB)
๐
tmutamt.h
(4.9 KB)
๐
tmutfmt.h
(7.42 KB)
๐
translit.h
(65.81 KB)
๐
tzfmt.h
(42.95 KB)
๐
tznames.h
(16.85 KB)
๐
tzrule.h
(34.81 KB)
๐
tztrans.h
(6.11 KB)
๐
ubidi.h
(89.61 KB)
๐
ubiditransform.h
(12.71 KB)
๐
ubrk.h
(24.43 KB)
๐
ucal.h
(63.96 KB)
๐
ucasemap.h
(15.27 KB)
๐
ucat.h
(5.35 KB)
๐
uchar.h
(151.87 KB)
๐
ucharstrie.h
(22.59 KB)
๐
ucharstriebuilder.h
(7.48 KB)
๐
uchriter.h
(13.24 KB)
๐
uclean.h
(11.21 KB)
๐
ucnv.h
(83.34 KB)
๐
ucnv_cb.h
(6.58 KB)
๐
ucnv_err.h
(20.98 KB)
๐
ucnvsel.h
(6.24 KB)
๐
ucol.h
(66.28 KB)
๐
ucoleitr.h
(9.82 KB)
๐
uconfig.h
(12.56 KB)
๐
ucpmap.h
(5.54 KB)
๐
ucptrie.h
(22.51 KB)
๐
ucsdet.h
(14.69 KB)
๐
ucurr.h
(16.72 KB)
๐
udat.h
(62.36 KB)
๐
udata.h
(15.63 KB)
๐
udateintervalformat.h
(11.93 KB)
๐
udatpg.h
(30.13 KB)
๐
udisplaycontext.h
(5.94 KB)
๐
udisplayoptions.h
(8.86 KB)
๐
uenum.h
(7.79 KB)
๐
ufieldpositer.h
(4.41 KB)
๐
uformattable.h
(10.97 KB)
๐
uformattednumber.h
(8.09 KB)
๐
uformattedvalue.h
(12.25 KB)
๐
ugender.h
(2.06 KB)
๐
uidna.h
(34.12 KB)
๐
uiter.h
(22.75 KB)
๐
uldnames.h
(10.48 KB)
๐
ulistformatter.h
(10.78 KB)
๐
uloc.h
(55.38 KB)
๐
ulocale.h
(6.31 KB)
๐
ulocbuilder.h
(16.69 KB)
๐
ulocdata.h
(11.3 KB)
๐
umachine.h
(14.59 KB)
๐
umisc.h
(1.34 KB)
๐
umsg.h
(24.25 KB)
๐
umutablecptrie.h
(8.3 KB)
๐
unifilt.h
(4 KB)
๐
unifunct.h
(4.05 KB)
๐
unimatch.h
(6.1 KB)
๐
unirepl.h
(3.38 KB)
๐
uniset.h
(70.31 KB)
๐
unistr.h
(182.08 KB)
๐
unorm.h
(20.55 KB)
๐
unorm2.h
(25.66 KB)
๐
unum.h
(55.16 KB)
๐
unumberformatter.h
(19.68 KB)
๐
unumberoptions.h
(5.23 KB)
๐
unumberrangeformatter.h
(15.35 KB)
๐
unumsys.h
(7.26 KB)
๐
uobject.h
(10.66 KB)
๐
upluralrules.h
(8.79 KB)
๐
uregex.h
(71.99 KB)
๐
uregion.h
(9.81 KB)
๐
ureldatefmt.h
(16.98 KB)
๐
urename.h
(141.99 KB)
๐
urep.h
(5.38 KB)
๐
ures.h
(36.65 KB)
๐
uscript.h
(28.51 KB)
๐
usearch.h
(39.21 KB)
๐
uset.h
(62.57 KB)
๐
usetiter.h
(9.63 KB)
๐
ushape.h
(18 KB)
๐
usimplenumberformatter.h
(7.36 KB)
๐
uspoof.h
(80 KB)
๐
usprep.h
(8.19 KB)
๐
ustdio.h
(38.56 KB)
๐
ustream.h
(1.89 KB)
๐
ustring.h
(72.16 KB)
๐
ustringtrie.h
(3.15 KB)
๐
utext.h
(58.1 KB)
๐
utf.h
(7.87 KB)
๐
utf16.h
(23.35 KB)
๐
utf32.h
(763 B)
๐
utf8.h
(30.83 KB)
๐
utf_old.h
(45.8 KB)
๐
utmscale.h
(13.78 KB)
๐
utrace.h
(17.18 KB)
๐
utrans.h
(25.54 KB)
๐
utypes.h
(34.27 KB)
๐
uvernum.h
(6.33 KB)
๐
uversion.h
(7.58 KB)
๐
vtzone.h
(20.68 KB)
Editing: usimplenumberformatter.h
// ยฉ 2022 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html #ifndef __USIMPLENUMBERFORMATTER_H__ #define __USIMPLENUMBERFORMATTER_H__ #include "unicode/utypes.h" #if !UCONFIG_NO_FORMATTING #include "unicode/uformattednumber.h" #include "unicode/unumberoptions.h" /** * \file * \brief C API: Simple number formatting focused on low memory and code size. * * These functions render locale-aware number strings but without the bells and whistles found in * other number formatting APIs such as those in unumberformatter.h, like units and currencies. * * Example using C++ helpers: * * <pre> * LocalUSimpleNumberFormatterPointer uformatter(usnumf_openForLocale("de-CH", status)); * LocalUFormattedNumberPointer uresult(unumf_openResult(status)); * usnumf_formatInt64(uformatter.getAlias(), 55, uresult.getAlias(), status); * assertEquals("", * u"55", * ufmtval_getString(unumf_resultAsValue(uresult.getAlias(), status), nullptr, status)); * </pre> * * Example using pure C: * * <pre> * UErrorCode ec = U_ZERO_ERROR; * USimpleNumberFormatter* uformatter = usnumf_openForLocale("bn", &ec); * USimpleNumber* unumber = usnum_openForInt64(1000007, &ec); * UFormattedNumber* uresult = unumf_openResult(&ec); * usnumf_format(uformatter, unumber, uresult, &ec); * int32_t len; * const UChar* str = ufmtval_getString(unumf_resultAsValue(uresult, &ec), &len, &ec); * if (assertSuccess("Formatting end-to-end", &ec)) { * assertUEquals("Should produce a result in Bangla digits", u"เงงเงฆ,เงฆเงฆ,เงฆเงฆเงญ", str); * } * // Cleanup: * unumf_closeResult(uresult); * usnum_close(unumber); * usnumf_close(uformatter); * </pre> */ /** * An explicit sign option for a SimpleNumber. * * @stable ICU 73 */ typedef enum USimpleNumberSign { /** * Render a plus sign. * * @stable ICU 73 */ UNUM_SIMPLE_NUMBER_PLUS_SIGN, /** * Render no sign. * * @stable ICU 73 */ UNUM_SIMPLE_NUMBER_NO_SIGN, /** * Render a minus sign. * * @stable ICU 73 */ UNUM_SIMPLE_NUMBER_MINUS_SIGN, } USimpleNumberSign; struct USimpleNumber; /** * C-compatible version of icu::number::SimpleNumber. * * @stable ICU 73 */ typedef struct USimpleNumber USimpleNumber; struct USimpleNumberFormatter; /** * C-compatible version of icu::number::SimpleNumberFormatter. * * @stable ICU 73 */ typedef struct USimpleNumberFormatter USimpleNumberFormatter; /** * Creates a new USimpleNumber to be formatted with a USimpleNumberFormatter. * * @stable ICU 73 */ U_CAPI USimpleNumber* U_EXPORT2 usnum_openForInt64(int64_t value, UErrorCode* ec); /** * Overwrites the value in a USimpleNumber to an int64_t. * * This can be used to reset the number value after formatting. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnum_setToInt64(USimpleNumber* unumber, int64_t value, UErrorCode* ec); /** * Changes the value of the USimpleNumber by a power of 10. * * This function immediately mutates the inner value. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnum_multiplyByPowerOfTen(USimpleNumber* unumber, int32_t power, UErrorCode* ec); /** * Rounds the value currently stored in the USimpleNumber to the given power of 10, * which can be before or after the decimal separator. * * This function does not change minimum integer digits. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnum_roundTo(USimpleNumber* unumber, int32_t power, UNumberFormatRoundingMode roundingMode, UErrorCode* ec); /** * Pads the beginning of the number with zeros up to the given minimum number of integer digits. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnum_setMinimumIntegerDigits(USimpleNumber* unumber, int32_t minimumIntegerDigits, UErrorCode* ec); /** * Pads the end of the number with zeros up to the given minimum number of fraction digits. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnum_setMinimumFractionDigits(USimpleNumber* unumber, int32_t minimumFractionDigits, UErrorCode* ec); #ifndef U_HIDE_DRAFT_API /** * Sets the number of integer digits to the given amount, truncating if necessary. * * @draft ICU 75 */ U_CAPI void U_EXPORT2 usnum_setMaximumIntegerDigits(USimpleNumber* unumber, int32_t maximumIntegerDigits, UErrorCode* ec); #endif // U_HIDE_DRAFT_API /** * Sets the sign of the number: an explicit plus sign, explicit minus sign, or no sign. * * This setting is applied upon formatting the number. * * NOTE: This does not support accounting sign notation. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnum_setSign(USimpleNumber* unumber, USimpleNumberSign sign, UErrorCode* ec); /** * Creates a new USimpleNumberFormatter with all locale defaults. * * @stable ICU 73 */ U_CAPI USimpleNumberFormatter* U_EXPORT2 usnumf_openForLocale(const char* locale, UErrorCode* ec); /** * Creates a new USimpleNumberFormatter, overriding the grouping strategy. * * @stable ICU 73 */ U_CAPI USimpleNumberFormatter* U_EXPORT2 usnumf_openForLocaleAndGroupingStrategy( const char* locale, UNumberGroupingStrategy groupingStrategy, UErrorCode* ec); /** * Formats a number using this SimpleNumberFormatter. * * The USimpleNumber is cleared after calling this function. It can be re-used via * usnum_setToInt64. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnumf_format( const USimpleNumberFormatter* uformatter, USimpleNumber* unumber, UFormattedNumber* uresult, UErrorCode* ec); /** * Formats an integer using this SimpleNumberFormatter. * * For more control over the formatting, use USimpleNumber. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnumf_formatInt64( const USimpleNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, UErrorCode* ec); /** * Frees the memory held by a USimpleNumber. * * NOTE: Normally, a USimpleNumber should be adopted by usnumf_formatAndAdoptNumber. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnum_close(USimpleNumber* unumber); /** * Frees the memory held by a USimpleNumberFormatter. * * @stable ICU 73 */ U_CAPI void U_EXPORT2 usnumf_close(USimpleNumberFormatter* uformatter); #if U_SHOW_CPLUSPLUS_API U_NAMESPACE_BEGIN /** * \class LocalUSimpleNumberPointer * "Smart pointer" class; closes a USimpleNumber via usnum_close(). * For most methods see the LocalPointerBase base class. * * NOTE: Normally, a USimpleNumber should be adopted by usnumf_formatAndAdoptNumber. * If you use LocalUSimpleNumberPointer, call `.orphan()` when passing to that function. * * Usage: * <pre> * LocalUSimpleNumberPointer uformatter(usnumf_openForInteger(...)); * // no need to explicitly call usnum_close() * </pre> * * @see LocalPointerBase * @see LocalPointer * @stable ICU 73 */ U_DEFINE_LOCAL_OPEN_POINTER(LocalUSimpleNumberPointer, USimpleNumber, usnum_close); /** * \class LocalUSimpleNumberFormatterPointer * "Smart pointer" class; closes a USimpleNumberFormatter via usnumf_close(). * For most methods see the LocalPointerBase base class. * * Usage: * <pre> * LocalUSimpleNumberFormatterPointer uformatter(usnumf_openForLocale(...)); * // no need to explicitly call usnumf_close() * </pre> * * @see LocalPointerBase * @see LocalPointer * @stable ICU 73 */ U_DEFINE_LOCAL_OPEN_POINTER(LocalUSimpleNumberFormatterPointer, USimpleNumberFormatter, usnumf_close); U_NAMESPACE_END #endif // U_SHOW_CPLUSPLUS_API #endif /* #if !UCONFIG_NO_FORMATTING */ #endif //__USIMPLENUMBERFORMATTER_H__
Upload File
Create Folder