Linux business57.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
Server IP : 199.188.201.191 & Your IP : 18.218.65.88
Domains :
Cant Read [ /etc/named.conf ]
User : derozboy
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--
2024-04-29 07:41
appendable.h
8.54
KB
-rw-r--r--
2024-04-29 07:41
basictz.h
9.99
KB
-rw-r--r--
2024-04-29 07:41
brkiter.h
27.86
KB
-rw-r--r--
2024-04-29 07:41
bytestream.h
10.75
KB
-rw-r--r--
2024-04-29 07:41
bytestrie.h
20.8
KB
-rw-r--r--
2024-04-29 07:41
bytestriebuilder.h
7.48
KB
-rw-r--r--
2024-04-29 07:41
calendar.h
106.52
KB
-rw-r--r--
2024-04-29 07:41
caniter.h
7.47
KB
-rw-r--r--
2024-04-29 07:41
casemap.h
25.42
KB
-rw-r--r--
2024-04-29 07:41
char16ptr.h
7.22
KB
-rw-r--r--
2024-04-29 07:41
chariter.h
24.06
KB
-rw-r--r--
2024-04-29 07:41
choicfmt.h
24
KB
-rw-r--r--
2024-04-29 07:41
coleitr.h
13.78
KB
-rw-r--r--
2024-04-29 07:41
coll.h
56.3
KB
-rw-r--r--
2024-04-29 07:41
compactdecimalformat.h
6.88
KB
-rw-r--r--
2024-04-29 07:41
curramt.h
3.67
KB
-rw-r--r--
2024-04-29 07:41
currpinf.h
7.3
KB
-rw-r--r--
2024-04-29 07:41
currunit.h
4.02
KB
-rw-r--r--
2024-04-29 07:41
datefmt.h
40.72
KB
-rw-r--r--
2024-04-29 07:41
dbbi.h
1.19
KB
-rw-r--r--
2024-04-29 07:41
dcfmtsym.h
20.94
KB
-rw-r--r--
2024-04-29 07:41
decimfmt.h
87.54
KB
-rw-r--r--
2024-04-29 07:41
displayoptions.h
7.08
KB
-rw-r--r--
2024-04-29 07:41
docmain.h
7.3
KB
-rw-r--r--
2024-04-29 07:41
dtfmtsym.h
38.23
KB
-rw-r--r--
2024-04-29 07:41
dtintrv.h
3.85
KB
-rw-r--r--
2024-04-29 07:41
dtitvfmt.h
49.26
KB
-rw-r--r--
2024-04-29 07:41
dtitvinf.h
18.63
KB
-rw-r--r--
2024-04-29 07:41
dtptngen.h
28.64
KB
-rw-r--r--
2024-04-29 07:41
dtrule.h
8.69
KB
-rw-r--r--
2024-04-29 07:41
edits.h
20.73
KB
-rw-r--r--
2024-04-29 07:41
enumset.h
2.08
KB
-rw-r--r--
2024-04-29 07:41
errorcode.h
4.84
KB
-rw-r--r--
2024-04-29 07:41
fieldpos.h
8.7
KB
-rw-r--r--
2024-04-29 07:41
filteredbrk.h
5.37
KB
-rw-r--r--
2024-04-29 07:41
fmtable.h
24.45
KB
-rw-r--r--
2024-04-29 07:41
format.h
12.5
KB
-rw-r--r--
2024-04-29 07:41
formattednumber.h
6.15
KB
-rw-r--r--
2024-04-29 07:41
formattedvalue.h
9.75
KB
-rw-r--r--
2024-04-29 07:41
fpositer.h
3.03
KB
-rw-r--r--
2024-04-29 07:41
gender.h
3.35
KB
-rw-r--r--
2024-04-29 07:41
gregocal.h
30.03
KB
-rw-r--r--
2024-04-29 07:41
icudataver.h
1.02
KB
-rw-r--r--
2024-04-29 07:41
icuplug.h
12.1
KB
-rw-r--r--
2024-04-29 07:41
idna.h
12.71
KB
-rw-r--r--
2024-04-29 07:41
listformatter.h
8.59
KB
-rw-r--r--
2024-04-29 07:41
localebuilder.h
11.08
KB
-rw-r--r--
2024-04-29 07:41
localematcher.h
26.83
KB
-rw-r--r--
2024-04-29 07:41
localpointer.h
19.44
KB
-rw-r--r--
2024-04-29 07:41
locdspnm.h
7.12
KB
-rw-r--r--
2024-04-29 07:41
locid.h
48.27
KB
-rw-r--r--
2024-04-29 07:41
measfmt.h
11.42
KB
-rw-r--r--
2024-04-29 07:41
measunit.h
107.38
KB
-rw-r--r--
2024-04-29 07:41
measure.h
4.69
KB
-rw-r--r--
2024-04-29 07:41
messagepattern.h
33.72
KB
-rw-r--r--
2024-04-29 07:41
msgfmt.h
44.21
KB
-rw-r--r--
2024-04-29 07:41
normalizer2.h
34.73
KB
-rw-r--r--
2024-04-29 07:41
normlzr.h
30.97
KB
-rw-r--r--
2024-04-29 07:41
nounit.h
2.25
KB
-rw-r--r--
2024-04-29 07:41
numberformatter.h
90.03
KB
-rw-r--r--
2024-04-29 07:41
numberrangeformatter.h
25.32
KB
-rw-r--r--
2024-04-29 07:41
numfmt.h
50.26
KB
-rw-r--r--
2024-04-29 07:41
numsys.h
7.23
KB
-rw-r--r--
2024-04-29 07:41
parseerr.h
3.08
KB
-rw-r--r--
2024-04-29 07:41
parsepos.h
5.57
KB
-rw-r--r--
2024-04-29 07:41
platform.h
27.8
KB
-rw-r--r--
2024-04-29 07:41
plurfmt.h
25.25
KB
-rw-r--r--
2024-04-29 07:41
plurrule.h
20.64
KB
-rw-r--r--
2024-04-29 07:41
ptypes.h
3.49
KB
-rw-r--r--
2024-04-29 07:41
putil.h
6.32
KB
-rw-r--r--
2024-04-29 07:41
rbbi.h
32.07
KB
-rw-r--r--
2024-04-29 07:41
rbnf.h
49.92
KB
-rw-r--r--
2024-04-29 07:41
rbtz.h
15.77
KB
-rw-r--r--
2024-04-29 07:41
regex.h
84.45
KB
-rw-r--r--
2024-04-29 07:41
region.h
9.2
KB
-rw-r--r--
2024-04-29 07:41
reldatefmt.h
22.36
KB
-rw-r--r--
2024-04-29 07:41
rep.h
9.38
KB
-rw-r--r--
2024-04-29 07:41
resbund.h
18.11
KB
-rw-r--r--
2024-04-29 07:41
schriter.h
6.1
KB
-rw-r--r--
2024-04-29 07:41
scientificnumberformatter.h
6.44
KB
-rw-r--r--
2024-04-29 07:41
search.h
22.24
KB
-rw-r--r--
2024-04-29 07:41
selfmt.h
14.35
KB
-rw-r--r--
2024-04-29 07:41
simpleformatter.h
12.6
KB
-rw-r--r--
2024-04-29 07:41
simplenumberformatter.h
8.88
KB
-rw-r--r--
2024-04-29 07:41
simpletz.h
45.65
KB
-rw-r--r--
2024-04-29 07:41
smpdtfmt.h
71.85
KB
-rw-r--r--
2024-04-29 07:41
sortkey.h
11.19
KB
-rw-r--r--
2024-04-29 07:41
std_string.h
1.05
KB
-rw-r--r--
2024-04-29 07:41
strenum.h
9.96
KB
-rw-r--r--
2024-04-29 07:41
stringoptions.h
5.79
KB
-rw-r--r--
2024-04-29 07:41
stringpiece.h
10.05
KB
-rw-r--r--
2024-04-29 07:41
stringtriebuilder.h
15.5
KB
-rw-r--r--
2024-04-29 07:41
stsearch.h
21.44
KB
-rw-r--r--
2024-04-29 07:41
symtable.h
4.28
KB
-rw-r--r--
2024-04-29 07:41
tblcoll.h
36.94
KB
-rw-r--r--
2024-04-29 07:41
timezone.h
45.67
KB
-rw-r--r--
2024-04-29 07:41
tmunit.h
3.4
KB
-rw-r--r--
2024-04-29 07:41
tmutamt.h
4.91
KB
-rw-r--r--
2024-04-29 07:41
tmutfmt.h
7.42
KB
-rw-r--r--
2024-04-29 07:41
translit.h
65.83
KB
-rw-r--r--
2024-04-29 07:41
tzfmt.h
42.96
KB
-rw-r--r--
2024-04-29 07:41
tznames.h
16.85
KB
-rw-r--r--
2024-04-29 07:41
tzrule.h
34.86
KB
-rw-r--r--
2024-04-29 07:41
tztrans.h
6.13
KB
-rw-r--r--
2024-04-29 07:41
ubidi.h
89.61
KB
-rw-r--r--
2024-04-29 07:41
ubiditransform.h
12.71
KB
-rw-r--r--
2024-04-29 07:41
ubrk.h
24.43
KB
-rw-r--r--
2024-04-29 07:41
ucal.h
64.28
KB
-rw-r--r--
2024-04-29 07:41
ucasemap.h
15.21
KB
-rw-r--r--
2024-04-29 07:41
ucat.h
5.35
KB
-rw-r--r--
2024-04-29 07:41
uchar.h
145.7
KB
-rw-r--r--
2024-04-29 07:41
ucharstrie.h
22.56
KB
-rw-r--r--
2024-04-29 07:41
ucharstriebuilder.h
7.48
KB
-rw-r--r--
2024-04-29 07:41
uchriter.h
13.42
KB
-rw-r--r--
2024-04-29 07:41
uclean.h
11.21
KB
-rw-r--r--
2024-04-29 07:41
ucnv.h
83.46
KB
-rw-r--r--
2024-04-29 07:41
ucnv_cb.h
6.58
KB
-rw-r--r--
2024-04-29 07:41
ucnv_err.h
20.98
KB
-rw-r--r--
2024-04-29 07:41
ucnvsel.h
6.24
KB
-rw-r--r--
2024-04-29 07:41
ucol.h
62.7
KB
-rw-r--r--
2024-04-29 07:41
ucoleitr.h
9.82
KB
-rw-r--r--
2024-04-29 07:41
uconfig.h
12.31
KB
-rw-r--r--
2024-04-29 07:41
ucpmap.h
5.54
KB
-rw-r--r--
2024-04-29 07:41
ucptrie.h
22.51
KB
-rw-r--r--
2024-04-29 07:41
ucsdet.h
14.69
KB
-rw-r--r--
2024-04-29 07:41
ucurr.h
16.72
KB
-rw-r--r--
2024-04-29 07:41
udat.h
62.36
KB
-rw-r--r--
2024-04-29 07:41
udata.h
15.63
KB
-rw-r--r--
2024-04-29 07:41
udateintervalformat.h
11.93
KB
-rw-r--r--
2024-04-29 07:41
udatpg.h
30.13
KB
-rw-r--r--
2024-04-29 07:41
udisplaycontext.h
5.94
KB
-rw-r--r--
2024-04-29 07:41
udisplayoptions.h
8.86
KB
-rw-r--r--
2024-04-29 07:41
uenum.h
7.79
KB
-rw-r--r--
2024-04-29 07:41
ufieldpositer.h
4.41
KB
-rw-r--r--
2024-04-29 07:41
uformattable.h
10.97
KB
-rw-r--r--
2024-04-29 07:41
uformattednumber.h
8.09
KB
-rw-r--r--
2024-04-29 07:41
uformattedvalue.h
12.25
KB
-rw-r--r--
2024-04-29 07:41
ugender.h
2.06
KB
-rw-r--r--
2024-04-29 07:41
uidna.h
33.43
KB
-rw-r--r--
2024-04-29 07:41
uiter.h
22.75
KB
-rw-r--r--
2024-04-29 07:41
uldnames.h
10.48
KB
-rw-r--r--
2024-04-29 07:41
ulistformatter.h
10.78
KB
-rw-r--r--
2024-04-29 07:41
uloc.h
54.66
KB
-rw-r--r--
2024-04-29 07:41
ulocale.h
6.35
KB
-rw-r--r--
2024-04-29 07:41
ulocbuilder.h
16.72
KB
-rw-r--r--
2024-04-29 07:41
ulocdata.h
11.3
KB
-rw-r--r--
2024-04-29 07:41
umachine.h
15
KB
-rw-r--r--
2024-04-29 07:41
umisc.h
1.34
KB
-rw-r--r--
2024-04-29 07:41
umsg.h
24.25
KB
-rw-r--r--
2024-04-29 07:41
umutablecptrie.h
8.3
KB
-rw-r--r--
2024-04-29 07:41
unifilt.h
4
KB
-rw-r--r--
2024-04-29 07:41
unifunct.h
4.05
KB
-rw-r--r--
2024-04-29 07:41
unimatch.h
6.1
KB
-rw-r--r--
2024-04-29 07:41
unirepl.h
3.38
KB
-rw-r--r--
2024-04-29 07:41
uniset.h
66.85
KB
-rw-r--r--
2024-04-29 07:41
unistr.h
171.35
KB
-rw-r--r--
2024-04-29 07:41
unorm.h
20.55
KB
-rw-r--r--
2024-04-29 07:41
unorm2.h
25.71
KB
-rw-r--r--
2024-04-29 07:41
unum.h
55.16
KB
-rw-r--r--
2024-04-29 07:41
unumberformatter.h
19.68
KB
-rw-r--r--
2024-04-29 07:41
unumberoptions.h
5.23
KB
-rw-r--r--
2024-04-29 07:41
unumberrangeformatter.h
15.35
KB
-rw-r--r--
2024-04-29 07:41
unumsys.h
7.26
KB
-rw-r--r--
2024-04-29 07:41
uobject.h
10.66
KB
-rw-r--r--
2024-04-29 07:41
upluralrules.h
8.79
KB
-rw-r--r--
2024-04-29 07:41
uregex.h
71.99
KB
-rw-r--r--
2024-04-29 07:41
uregion.h
9.81
KB
-rw-r--r--
2024-04-29 07:41
ureldatefmt.h
16.98
KB
-rw-r--r--
2024-04-29 07:41
urename.h
140.82
KB
-rw-r--r--
2024-04-29 07:41
urep.h
5.38
KB
-rw-r--r--
2024-04-29 07:41
ures.h
36.65
KB
-rw-r--r--
2024-04-29 07:41
uscript.h
27.8
KB
-rw-r--r--
2024-04-29 07:41
usearch.h
39.21
KB
-rw-r--r--
2024-04-29 07:41
uset.h
45.61
KB
-rw-r--r--
2024-04-29 07:41
usetiter.h
9.63
KB
-rw-r--r--
2024-04-29 07:41
ushape.h
18
KB
-rw-r--r--
2024-04-29 07:41
usimplenumberformatter.h
7.46
KB
-rw-r--r--
2024-04-29 07:41
uspoof.h
80.32
KB
-rw-r--r--
2024-04-29 07:41
usprep.h
8.19
KB
-rw-r--r--
2024-04-29 07:41
ustdio.h
38.56
KB
-rw-r--r--
2024-04-29 07:41
ustream.h
1.89
KB
-rw-r--r--
2024-04-29 07:41
ustring.h
72.13
KB
-rw-r--r--
2024-04-29 07:41
ustringtrie.h
3.15
KB
-rw-r--r--
2024-04-29 07:41
utext.h
58.1
KB
-rw-r--r--
2024-04-29 07:41
utf.h
7.87
KB
-rw-r--r--
2024-04-29 07:41
utf16.h
23.35
KB
-rw-r--r--
2024-04-29 07:41
utf32.h
763
B
-rw-r--r--
2024-04-29 07:41
utf8.h
30.83
KB
-rw-r--r--
2024-04-29 07:41
utf_old.h
45.8
KB
-rw-r--r--
2024-04-29 07:41
utmscale.h
13.78
KB
-rw-r--r--
2024-04-29 07:41
utrace.h
17.18
KB
-rw-r--r--
2024-04-29 07:41
utrans.h
25.54
KB
-rw-r--r--
2024-04-29 07:41
utypes.h
31.06
KB
-rw-r--r--
2024-04-29 07:41
uvernum.h
6.33
KB
-rw-r--r--
2024-04-29 07:41
uversion.h
5.99
KB
-rw-r--r--
2024-04-29 07:41
vtzone.h
20.69
KB
-rw-r--r--
2024-04-29 07:41
Save
Rename
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /******************************************************************** * COPYRIGHT: * Copyright (c) 1997-2011, International Business Machines Corporation and * others. All Rights Reserved. * Copyright (C) 2010 , Yahoo! Inc. ******************************************************************** * * file name: umsg.h * encoding: UTF-8 * tab size: 8 (not used) * indentation:4 * * Change history: * * 08/5/2001 Ram Added C wrappers for C++ API. ********************************************************************/ #ifndef UMSG_H #define UMSG_H #include "unicode/utypes.h" #if !UCONFIG_NO_FORMATTING #include "unicode/uloc.h" #include "unicode/parseerr.h" #include <stdarg.h> #if U_SHOW_CPLUSPLUS_API #include "unicode/localpointer.h" #endif // U_SHOW_CPLUSPLUS_API /** * \file * \brief C API: MessageFormat * * <h2>MessageFormat C API </h2> * * <p>MessageFormat prepares strings for display to users, * with optional arguments (variables/placeholders). * The arguments can occur in any order, which is necessary for translation * into languages with different grammars. * * <p>The opaque UMessageFormat type is a thin C wrapper around * a C++ MessageFormat. It is constructed from a <em>pattern</em> string * with arguments in {curly braces} which will be replaced by formatted values. * * <p>Currently, the C API supports only numbered arguments. * * <p>For details about the pattern syntax and behavior, * especially about the ASCII apostrophe vs. the * real apostrophe (single quote) character \htmlonly’\endhtmlonly (U+2019), * see the C++ MessageFormat class documentation. * * <p>Here are some examples of C API usage: * Example 1: * <pre> * \code * UChar *result, *tzID, *str; * UChar pattern[100]; * int32_t resultLengthOut, resultlength; * UCalendar *cal; * UDate d1; * UDateFormat *def1; * UErrorCode status = U_ZERO_ERROR; * * str=(UChar*)malloc(sizeof(UChar) * (strlen("disturbance in force") +1)); * u_uastrcpy(str, "disturbance in force"); * tzID=(UChar*)malloc(sizeof(UChar) * 4); * u_uastrcpy(tzID, "PST"); * cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status); * ucal_setDateTime(cal, 1999, UCAL_MARCH, 18, 0, 0, 0, &status); * d1=ucal_getMillis(cal, &status); * u_uastrcpy(pattern, "On {0, date, long}, there was a {1} on planet {2,number,integer}"); * resultlength=0; * resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, d1, str, 7); * if(status==U_BUFFER_OVERFLOW_ERROR){ * status=U_ZERO_ERROR; * resultlength=resultLengthOut+1; * result=(UChar*)realloc(result, sizeof(UChar) * resultlength); * u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, d1, str, 7); * } * printf("%s\n", austrdup(result) );//austrdup( a function used to convert UChar* to char*) * //output>: "On March 18, 1999, there was a disturbance in force on planet 7 * \endcode * </pre> * Typically, the message format will come from resources, and the * arguments will be dynamically set at runtime. * <P> * Example 2: * <pre> * \code * UChar* str; * UErrorCode status = U_ZERO_ERROR; * UChar *result; * UChar pattern[100]; * int32_t resultlength, resultLengthOut, i; * double testArgs= { 100.0, 1.0, 0.0}; * * str=(UChar*)malloc(sizeof(UChar) * 10); * u_uastrcpy(str, "MyDisk"); * u_uastrcpy(pattern, "The disk {1} contains {0,choice,0#no files|1#one file|1<{0,number,integer} files}"); * for(i=0; i<3; i++){ * resultlength=0; * resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, testArgs[i], str); * if(status==U_BUFFER_OVERFLOW_ERROR){ * status=U_ZERO_ERROR; * resultlength=resultLengthOut+1; * result=(UChar*)malloc(sizeof(UChar) * resultlength); * u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, testArgs[i], str); * } * printf("%s\n", austrdup(result) ); //austrdup( a function used to convert UChar* to char*) * free(result); * } * // output, with different testArgs: * // output: The disk "MyDisk" contains 100 files. * // output: The disk "MyDisk" contains one file. * // output: The disk "MyDisk" contains no files. * \endcode * </pre> * * * Example 3: * <pre> * \code * UChar* str; * UChar* str1; * UErrorCode status = U_ZERO_ERROR; * UChar *result; * UChar pattern[100]; * UChar expected[100]; * int32_t resultlength,resultLengthOut; * str=(UChar*)malloc(sizeof(UChar) * 25); * u_uastrcpy(str, "Kirti"); * str1=(UChar*)malloc(sizeof(UChar) * 25); * u_uastrcpy(str1, "female"); * log_verbose("Testing message format with Select test #1\n:"); * u_uastrcpy(pattern, "{0} est {1, select, female {all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris."); * u_uastrcpy(expected, "Kirti est all\\u00E9e \\u00E0 Paris."); * resultlength=0; * resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, str , str1); * if(status==U_BUFFER_OVERFLOW_ERROR) * { * status=U_ZERO_ERROR; * resultlength=resultLengthOut+1; * result=(UChar*)malloc(sizeof(UChar) * resultlength); * u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1); * if(u_strcmp(result, expected)==0) * log_verbose("PASS: MessagFormat successful on Select test#1\n"); * else{ * log_err("FAIL: Error in MessageFormat on Select test#1\n GOT %s EXPECTED %s\n", austrdup(result), * austrdup(expected) ); * } * free(result); * } * \endcode * </pre> */ /** * Format a message for a locale. * This function may perform re-ordering of the arguments depending on the * locale. For all numeric arguments, double is assumed unless the type is * explicitly integer. All choice format arguments must be of type double. * @param locale The locale for which the message will be formatted * @param pattern The pattern specifying the message's format * @param patternLength The length of pattern * @param result A pointer to a buffer to receive the formatted message. * @param resultLength The maximum size of result. * @param status A pointer to an UErrorCode to receive any errors * @param ... A variable-length argument list containing the arguments specified * in pattern. * @return The total buffer size needed; if greater than resultLength, the * output was truncated. * @see u_parseMessage * @stable ICU 2.0 */ U_CAPI int32_t U_EXPORT2 u_formatMessage(const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, UErrorCode *status, ...); /** * Format a message for a locale. * This function may perform re-ordering of the arguments depending on the * locale. For all numeric arguments, double is assumed unless the type is * explicitly integer. All choice format arguments must be of type double. * @param locale The locale for which the message will be formatted * @param pattern The pattern specifying the message's format * @param patternLength The length of pattern * @param result A pointer to a buffer to receive the formatted message. * @param resultLength The maximum size of result. * @param ap A variable-length argument list containing the arguments specified * @param status A pointer to an UErrorCode to receive any errors * in pattern. * @return The total buffer size needed; if greater than resultLength, the * output was truncated. * @see u_parseMessage * @stable ICU 2.0 */ U_CAPI int32_t U_EXPORT2 u_vformatMessage( const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, va_list ap, UErrorCode *status); /** * Parse a message. * For numeric arguments, this function will always use doubles. Integer types * should not be passed. * This function is not able to parse all output from {@link #u_formatMessage }. * @param locale The locale for which the message is formatted * @param pattern The pattern specifying the message's format * @param patternLength The length of pattern * @param source The text to parse. * @param sourceLength The length of source, or -1 if null-terminated. * @param status A pointer to an UErrorCode to receive any errors * @param ... A variable-length argument list containing the arguments * specified in pattern. * @see u_formatMessage * @stable ICU 2.0 */ U_CAPI void U_EXPORT2 u_parseMessage( const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, UErrorCode *status, ...); /** * Parse a message. * For numeric arguments, this function will always use doubles. Integer types * should not be passed. * This function is not able to parse all output from {@link #u_formatMessage }. * @param locale The locale for which the message is formatted * @param pattern The pattern specifying the message's format * @param patternLength The length of pattern * @param source The text to parse. * @param sourceLength The length of source, or -1 if null-terminated. * @param ap A variable-length argument list containing the arguments * @param status A pointer to an UErrorCode to receive any errors * specified in pattern. * @see u_formatMessage * @stable ICU 2.0 */ U_CAPI void U_EXPORT2 u_vparseMessage(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, va_list ap, UErrorCode *status); /** * Format a message for a locale. * This function may perform re-ordering of the arguments depending on the * locale. For all numeric arguments, double is assumed unless the type is * explicitly integer. All choice format arguments must be of type double. * @param locale The locale for which the message will be formatted * @param pattern The pattern specifying the message's format * @param patternLength The length of pattern * @param result A pointer to a buffer to receive the formatted message. * @param resultLength The maximum size of result. * @param status A pointer to an UErrorCode to receive any errors * @param ... A variable-length argument list containing the arguments specified * in pattern. * @param parseError A pointer to UParseError to receive information about errors * occurred during parsing. * @return The total buffer size needed; if greater than resultLength, the * output was truncated. * @see u_parseMessage * @stable ICU 2.0 */ U_CAPI int32_t U_EXPORT2 u_formatMessageWithError( const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, UParseError *parseError, UErrorCode *status, ...); /** * Format a message for a locale. * This function may perform re-ordering of the arguments depending on the * locale. For all numeric arguments, double is assumed unless the type is * explicitly integer. All choice format arguments must be of type double. * @param locale The locale for which the message will be formatted * @param pattern The pattern specifying the message's format * @param patternLength The length of pattern * @param result A pointer to a buffer to receive the formatted message. * @param resultLength The maximum size of result. * @param parseError A pointer to UParseError to receive information about errors * occurred during parsing. * @param ap A variable-length argument list containing the arguments specified * @param status A pointer to an UErrorCode to receive any errors * in pattern. * @return The total buffer size needed; if greater than resultLength, the * output was truncated. * @stable ICU 2.0 */ U_CAPI int32_t U_EXPORT2 u_vformatMessageWithError( const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, UParseError* parseError, va_list ap, UErrorCode *status); /** * Parse a message. * For numeric arguments, this function will always use doubles. Integer types * should not be passed. * This function is not able to parse all output from {@link #u_formatMessage }. * @param locale The locale for which the message is formatted * @param pattern The pattern specifying the message's format * @param patternLength The length of pattern * @param source The text to parse. * @param sourceLength The length of source, or -1 if null-terminated. * @param parseError A pointer to UParseError to receive information about errors * occurred during parsing. * @param status A pointer to an UErrorCode to receive any errors * @param ... A variable-length argument list containing the arguments * specified in pattern. * @see u_formatMessage * @stable ICU 2.0 */ U_CAPI void U_EXPORT2 u_parseMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, UParseError *parseError, UErrorCode *status, ...); /** * Parse a message. * For numeric arguments, this function will always use doubles. Integer types * should not be passed. * This function is not able to parse all output from {@link #u_formatMessage }. * @param locale The locale for which the message is formatted * @param pattern The pattern specifying the message's format * @param patternLength The length of pattern * @param source The text to parse. * @param sourceLength The length of source, or -1 if null-terminated. * @param ap A variable-length argument list containing the arguments * @param parseError A pointer to UParseError to receive information about errors * occurred during parsing. * @param status A pointer to an UErrorCode to receive any errors * specified in pattern. * @see u_formatMessage * @stable ICU 2.0 */ U_CAPI void U_EXPORT2 u_vparseMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, va_list ap, UParseError *parseError, UErrorCode* status); /*----------------------- New experimental API --------------------------- */ /** * The message format object * @stable ICU 2.0 */ typedef void* UMessageFormat; /** * Open a message formatter with given pattern and for the given locale. * @param pattern A pattern specifying the format to use. * @param patternLength Length of the pattern to use * @param locale The locale for which the messages are formatted. * @param parseError A pointer to UParseError struct to receive any errors * occurred during parsing. Can be NULL. * @param status A pointer to an UErrorCode to receive any errors. * @return A pointer to a UMessageFormat to use for formatting * messages, or 0 if an error occurred. * @stable ICU 2.0 */ U_CAPI UMessageFormat* U_EXPORT2 umsg_open( const UChar *pattern, int32_t patternLength, const char *locale, UParseError *parseError, UErrorCode *status); /** * Close a UMessageFormat. * Once closed, a UMessageFormat may no longer be used. * @param format The formatter to close. * @stable ICU 2.0 */ U_CAPI void U_EXPORT2 umsg_close(UMessageFormat* format); #if U_SHOW_CPLUSPLUS_API U_NAMESPACE_BEGIN /** * \class LocalUMessageFormatPointer * "Smart pointer" class, closes a UMessageFormat via umsg_close(). * For most methods see the LocalPointerBase base class. * * @see LocalPointerBase * @see LocalPointer * @stable ICU 4.4 */ U_DEFINE_LOCAL_OPEN_POINTER(LocalUMessageFormatPointer, UMessageFormat, umsg_close); U_NAMESPACE_END #endif /** * Open a copy of a UMessageFormat. * This function performs a deep copy. * @param fmt The formatter to copy * @param status A pointer to an UErrorCode to receive any errors. * @return A pointer to a UDateFormat identical to fmt. * @stable ICU 2.0 */ U_CAPI UMessageFormat U_EXPORT2 umsg_clone(const UMessageFormat *fmt, UErrorCode *status); /** * Sets the locale. This locale is used for fetching default number or date * format information. * @param fmt The formatter to set * @param locale The locale the formatter should use. * @stable ICU 2.0 */ U_CAPI void U_EXPORT2 umsg_setLocale(UMessageFormat *fmt, const char* locale); /** * Gets the locale. This locale is used for fetching default number or date * format information. * @param fmt The formatter to querry * @return the locale. * @stable ICU 2.0 */ U_CAPI const char* U_EXPORT2 umsg_getLocale(const UMessageFormat *fmt); /** * Sets the pattern. * @param fmt The formatter to use * @param pattern The pattern to be applied. * @param patternLength Length of the pattern to use * @param parseError Struct to receive information on position * of error if an error is encountered.Can be NULL. * @param status Output param set to success/failure code on * exit. If the pattern is invalid, this will be * set to a failure result. * @stable ICU 2.0 */ U_CAPI void U_EXPORT2 umsg_applyPattern( UMessageFormat *fmt, const UChar* pattern, int32_t patternLength, UParseError* parseError, UErrorCode* status); /** * Gets the pattern. * @param fmt The formatter to use * @param result A pointer to a buffer to receive the pattern. * @param resultLength The maximum size of result. * @param status Output param set to success/failure code on * exit. If the pattern is invalid, this will be * set to a failure result. * @return the pattern of the format * @stable ICU 2.0 */ U_CAPI int32_t U_EXPORT2 umsg_toPattern(const UMessageFormat *fmt, UChar* result, int32_t resultLength, UErrorCode* status); /** * Format a message for a locale. * This function may perform re-ordering of the arguments depending on the * locale. For all numeric arguments, double is assumed unless the type is * explicitly integer. All choice format arguments must be of type double. * @param fmt The formatter to use * @param result A pointer to a buffer to receive the formatted message. * @param resultLength The maximum size of result. * @param status A pointer to an UErrorCode to receive any errors * @param ... A variable-length argument list containing the arguments * specified in pattern. * @return The total buffer size needed; if greater than resultLength, * the output was truncated. * @stable ICU 2.0 */ U_CAPI int32_t U_EXPORT2 umsg_format( const UMessageFormat *fmt, UChar *result, int32_t resultLength, UErrorCode *status, ...); /** * Format a message for a locale. * This function may perform re-ordering of the arguments depending on the * locale. For all numeric arguments, double is assumed unless the type is * explicitly integer. All choice format arguments must be of type double. * @param fmt The formatter to use * @param result A pointer to a buffer to receive the formatted message. * @param resultLength The maximum size of result. * @param ap A variable-length argument list containing the arguments * @param status A pointer to an UErrorCode to receive any errors * specified in pattern. * @return The total buffer size needed; if greater than resultLength, * the output was truncated. * @stable ICU 2.0 */ U_CAPI int32_t U_EXPORT2 umsg_vformat( const UMessageFormat *fmt, UChar *result, int32_t resultLength, va_list ap, UErrorCode *status); /** * Parse a message. * For numeric arguments, this function will always use doubles. Integer types * should not be passed. * This function is not able to parse all output from {@link #umsg_format }. * @param fmt The formatter to use * @param source The text to parse. * @param sourceLength The length of source, or -1 if null-terminated. * @param count Output param to receive number of elements returned. * @param status A pointer to an UErrorCode to receive any errors * @param ... A variable-length argument list containing the arguments * specified in pattern. * @stable ICU 2.0 */ U_CAPI void U_EXPORT2 umsg_parse( const UMessageFormat *fmt, const UChar *source, int32_t sourceLength, int32_t *count, UErrorCode *status, ...); /** * Parse a message. * For numeric arguments, this function will always use doubles. Integer types * should not be passed. * This function is not able to parse all output from {@link #umsg_format }. * @param fmt The formatter to use * @param source The text to parse. * @param sourceLength The length of source, or -1 if null-terminated. * @param count Output param to receive number of elements returned. * @param ap A variable-length argument list containing the arguments * @param status A pointer to an UErrorCode to receive any errors * specified in pattern. * @see u_formatMessage * @stable ICU 2.0 */ U_CAPI void U_EXPORT2 umsg_vparse(const UMessageFormat *fmt, const UChar *source, int32_t sourceLength, int32_t *count, va_list ap, UErrorCode *status); /** * Convert an 'apostrophe-friendly' pattern into a standard * pattern. Standard patterns treat all apostrophes as * quotes, which is problematic in some languages, e.g. * French, where apostrophe is commonly used. This utility * assumes that only an unpaired apostrophe immediately before * a brace is a true quote. Other unpaired apostrophes are paired, * and the resulting standard pattern string is returned. * * <p><b>Note</b> it is not guaranteed that the returned pattern * is indeed a valid pattern. The only effect is to convert * between patterns having different quoting semantics. * * @param pattern the 'apostrophe-friendly' patttern to convert * @param patternLength the length of pattern, or -1 if unknown and pattern is null-terminated * @param dest the buffer for the result, or NULL if preflight only * @param destCapacity the length of the buffer, or 0 if preflighting * @param ec the error code * @return the length of the resulting text, not including trailing null * if buffer has room for the trailing null, it is provided, otherwise * not * @stable ICU 3.4 */ U_CAPI int32_t U_EXPORT2 umsg_autoQuoteApostrophe(const UChar* pattern, int32_t patternLength, UChar* dest, int32_t destCapacity, UErrorCode* ec); #endif /* #if !UCONFIG_NO_FORMATTING */ #endif