OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
alt-nodejs22
/
root
/
usr
/
include
/
unicode
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
๐
..
-
10/21/2025 06:56:31 AM
rwxr-xr-x
๐
alphaindex.h
26.54 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
appendable.h
8.54 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
basictz.h
9.99 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
brkiter.h
27.84 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
bytestream.h
10.77 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
bytestrie.h
20.83 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
bytestriebuilder.h
7.48 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
calendar.h
107.54 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
caniter.h
7.53 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
casemap.h
25.42 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
char16ptr.h
10.79 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
chariter.h
23.79 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
choicfmt.h
23.99 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
coleitr.h
13.78 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
coll.h
59.6 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
compactdecimalformat.h
6.88 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
curramt.h
3.67 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
currpinf.h
7.3 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
currunit.h
4.02 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
datefmt.h
40.7 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
dbbi.h
1.19 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
dcfmtsym.h
20.96 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
decimfmt.h
87.46 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
displayoptions.h
7.08 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
docmain.h
7.6 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
dtfmtsym.h
38.22 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
dtintrv.h
3.84 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
dtitvfmt.h
48.87 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
dtitvinf.h
18.63 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
dtptngen.h
28.05 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
dtrule.h
8.66 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
edits.h
20.74 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
enumset.h
2.08 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
errorcode.h
4.84 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
fieldpos.h
8.69 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
filteredbrk.h
5.37 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
fmtable.h
24.37 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
format.h
12.51 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
formattednumber.h
6.28 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
formattedvalue.h
9.75 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
fpositer.h
3.03 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
gender.h
3.35 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
gregocal.h
30.32 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
icudataver.h
1.02 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
icuplug.h
12.1 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
idna.h
12.93 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
listformatter.h
8.59 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
localebuilder.h
11.08 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
localematcher.h
26.86 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
localpointer.h
19.55 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
locdspnm.h
7.12 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
locid.h
48.62 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
measfmt.h
11.41 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
measunit.h
111.44 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
measure.h
4.63 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
messageformat2.h
21.05 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
messageformat2_arguments.h
4.49 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
messageformat2_data_model.h
101.89 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
messageformat2_data_model_names.h
784 bytes
06/06/2025 11:36:00 AM
rw-r--r--
๐
messageformat2_formattable.h
38.36 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
messageformat2_function_registry.h
18.07 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
messagepattern.h
33.79 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
msgfmt.h
44.2 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
normalizer2.h
34.68 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
normlzr.h
30.79 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
nounit.h
2.24 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
numberformatter.h
90.69 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
numberrangeformatter.h
26 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
numfmt.h
50.16 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
numsys.h
7.22 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
parseerr.h
3.08 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
parsepos.h
5.56 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
platform.h
27.18 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
plurfmt.h
25.07 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
plurrule.h
20.63 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ptypes.h
2.16 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
putil.h
6.32 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
rbbi.h
32.04 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
rbnf.h
56.16 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
rbtz.h
15.75 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
regex.h
84.45 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
region.h
9.2 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
reldatefmt.h
22.48 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
rep.h
9.38 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
resbund.h
18.02 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
schriter.h
6.09 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
scientificnumberformatter.h
6.44 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
search.h
22.21 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
selfmt.h
14.35 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
simpleformatter.h
12.6 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
simplenumberformatter.h
8.87 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
simpletz.h
45.62 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
smpdtfmt.h
57.06 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
sortkey.h
11.13 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
std_string.h
1.05 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
strenum.h
9.96 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
stringoptions.h
5.79 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
stringpiece.h
10.28 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
stringtriebuilder.h
15.53 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
stsearch.h
21.43 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
symtable.h
4.28 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
tblcoll.h
36.96 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
timezone.h
45.59 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
tmunit.h
3.4 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
tmutamt.h
4.9 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
tmutfmt.h
7.42 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
translit.h
65.81 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
tzfmt.h
42.95 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
tznames.h
16.85 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
tzrule.h
34.81 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
tztrans.h
6.11 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ubidi.h
89.61 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ubiditransform.h
12.71 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ubrk.h
24.43 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucal.h
63.96 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucasemap.h
15.27 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucat.h
5.35 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uchar.h
151.74 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucharstrie.h
22.59 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucharstriebuilder.h
7.48 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uchriter.h
13.24 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uclean.h
11.21 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucnv.h
83.34 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucnv_cb.h
6.58 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucnv_err.h
20.98 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucnvsel.h
6.24 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucol.h
67.28 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucoleitr.h
9.82 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uconfig.h
12.56 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucpmap.h
5.54 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucptrie.h
22.51 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucsdet.h
14.69 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ucurr.h
16.72 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
udat.h
62.36 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
udata.h
15.63 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
udateintervalformat.h
11.93 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
udatpg.h
30.13 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
udisplaycontext.h
5.94 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
udisplayoptions.h
8.86 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uenum.h
7.79 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ufieldpositer.h
4.41 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uformattable.h
10.97 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uformattednumber.h
8.09 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uformattedvalue.h
12.25 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ugender.h
2.06 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uidna.h
34.12 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uiter.h
22.75 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uldnames.h
10.48 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ulistformatter.h
10.78 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uloc.h
55.38 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ulocale.h
6.31 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ulocbuilder.h
16.69 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ulocdata.h
11.3 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
umachine.h
14.59 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
umisc.h
1.34 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
umsg.h
24.25 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
umutablecptrie.h
8.3 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unifilt.h
4 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unifunct.h
4.05 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unimatch.h
6.1 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unirepl.h
3.38 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uniset.h
70.4 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unistr.h
182.08 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unorm.h
20.55 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unorm2.h
25.66 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unum.h
55.16 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unumberformatter.h
19.68 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unumberoptions.h
5.23 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unumberrangeformatter.h
15.35 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
unumsys.h
7.26 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uobject.h
10.66 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
upluralrules.h
8.79 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uregex.h
71.99 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uregion.h
9.81 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ureldatefmt.h
16.98 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
urename.h
141.99 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
urep.h
5.38 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ures.h
36.65 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uscript.h
28.51 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
usearch.h
39.21 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uset.h
63.08 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
usetiter.h
9.63 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ushape.h
18 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
usimplenumberformatter.h
7.31 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uspoof.h
80 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
usprep.h
8.19 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ustdio.h
38.58 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ustream.h
1.89 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ustring.h
72.16 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
ustringtrie.h
3.15 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
utext.h
58.1 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
utf.h
7.87 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
utf16.h
23.35 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
utf32.h
763 bytes
06/06/2025 11:36:00 AM
rw-r--r--
๐
utf8.h
30.83 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
utf_old.h
45.8 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
utmscale.h
13.78 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
utrace.h
17.18 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
utrans.h
25.54 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
utypes.h
34.48 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uvernum.h
6.33 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
uversion.h
8.21 KB
06/06/2025 11:36:00 AM
rw-r--r--
๐
vtzone.h
20.68 KB
06/06/2025 11:36:00 AM
rw-r--r--
Editing: usimplenumberformatter.h
Close
// ยฉ 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); /** * Sets the number of integer digits to the given amount, truncating if necessary. * * @stable ICU 75 */ U_CAPI void U_EXPORT2 usnum_setMaximumIntegerDigits(USimpleNumber* unumber, int32_t maximumIntegerDigits, UErrorCode* ec); /** * 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__