Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 216.73.216.206
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
alt-nodejs19 /
root /
usr /
include /
unicode /
Delete
Unzip
Name
Size
Permission
Date
Action
alphaindex.h
26.53
KB
-rw-r--r--
2023-02-22 10:03
appendable.h
8.53
KB
-rw-r--r--
2023-02-22 10:03
basictz.h
9.98
KB
-rw-r--r--
2023-02-22 10:03
brkiter.h
27.81
KB
-rw-r--r--
2023-02-22 10:03
bytestream.h
10.75
KB
-rw-r--r--
2023-02-22 10:03
bytestrie.h
20.78
KB
-rw-r--r--
2023-02-22 10:03
bytestriebuilder.h
7.48
KB
-rw-r--r--
2023-02-22 10:03
calendar.h
102.25
KB
-rw-r--r--
2023-02-22 10:03
caniter.h
7.47
KB
-rw-r--r--
2023-02-22 10:03
casemap.h
25.33
KB
-rw-r--r--
2023-02-22 10:03
char16ptr.h
7.22
KB
-rw-r--r--
2023-02-22 10:03
chariter.h
24.06
KB
-rw-r--r--
2023-02-22 10:03
choicfmt.h
23.98
KB
-rw-r--r--
2023-02-22 10:03
coleitr.h
13.78
KB
-rw-r--r--
2023-02-22 10:03
coll.h
56.27
KB
-rw-r--r--
2023-02-22 10:03
compactdecimalformat.h
6.88
KB
-rw-r--r--
2023-02-22 10:03
curramt.h
3.78
KB
-rw-r--r--
2023-02-22 10:03
currpinf.h
7.3
KB
-rw-r--r--
2023-02-22 10:03
currunit.h
4.02
KB
-rw-r--r--
2023-02-22 10:03
datefmt.h
40.71
KB
-rw-r--r--
2023-02-22 10:03
dbbi.h
1.19
KB
-rw-r--r--
2023-02-22 10:03
dcfmtsym.h
20.61
KB
-rw-r--r--
2023-02-22 10:03
decimfmt.h
87.57
KB
-rw-r--r--
2023-02-22 10:03
displayoptions.h
7.11
KB
-rw-r--r--
2023-02-22 10:03
docmain.h
7.21
KB
-rw-r--r--
2023-02-22 10:03
dtfmtsym.h
38.22
KB
-rw-r--r--
2023-02-22 10:03
dtintrv.h
3.85
KB
-rw-r--r--
2023-02-22 10:03
dtitvfmt.h
49.27
KB
-rw-r--r--
2023-02-22 10:03
dtitvinf.h
18.63
KB
-rw-r--r--
2023-02-22 10:03
dtptngen.h
28.69
KB
-rw-r--r--
2023-02-22 10:03
dtrule.h
8.69
KB
-rw-r--r--
2023-02-22 10:03
edits.h
20.74
KB
-rw-r--r--
2023-02-22 10:03
enumset.h
2.08
KB
-rw-r--r--
2023-02-22 10:03
errorcode.h
4.84
KB
-rw-r--r--
2023-02-22 10:03
fieldpos.h
8.7
KB
-rw-r--r--
2023-02-22 10:03
filteredbrk.h
5.37
KB
-rw-r--r--
2023-02-22 10:03
fmtable.h
24.43
KB
-rw-r--r--
2023-02-22 10:03
format.h
12.5
KB
-rw-r--r--
2023-02-22 10:03
formattedvalue.h
9.75
KB
-rw-r--r--
2023-02-22 10:03
fpositer.h
3.03
KB
-rw-r--r--
2023-02-22 10:03
gender.h
3.35
KB
-rw-r--r--
2023-02-22 10:03
gregocal.h
31.04
KB
-rw-r--r--
2023-02-22 10:03
icudataver.h
1.02
KB
-rw-r--r--
2023-02-22 10:03
icuplug.h
11.83
KB
-rw-r--r--
2023-02-22 10:03
idna.h
12.71
KB
-rw-r--r--
2023-02-22 10:03
listformatter.h
8.61
KB
-rw-r--r--
2023-02-22 10:03
localebuilder.h
11.08
KB
-rw-r--r--
2023-02-22 10:03
localematcher.h
26.84
KB
-rw-r--r--
2023-02-22 10:03
localpointer.h
19.36
KB
-rw-r--r--
2023-02-22 10:03
locdspnm.h
7.12
KB
-rw-r--r--
2023-02-22 10:03
locid.h
47.66
KB
-rw-r--r--
2023-02-22 10:03
measfmt.h
11.42
KB
-rw-r--r--
2023-02-22 10:03
measunit.h
106.33
KB
-rw-r--r--
2023-02-22 10:03
measure.h
4.33
KB
-rw-r--r--
2023-02-22 10:03
messagepattern.h
33.71
KB
-rw-r--r--
2023-02-22 10:03
msgfmt.h
44.17
KB
-rw-r--r--
2023-02-22 10:03
normalizer2.h
33.66
KB
-rw-r--r--
2023-02-22 10:03
normlzr.h
30.96
KB
-rw-r--r--
2023-02-22 10:03
nounit.h
2.25
KB
-rw-r--r--
2023-02-22 10:03
numberformatter.h
94.82
KB
-rw-r--r--
2023-02-22 10:03
numberrangeformatter.h
25.02
KB
-rw-r--r--
2023-02-22 10:03
numfmt.h
49.84
KB
-rw-r--r--
2023-02-22 10:03
numsys.h
7.22
KB
-rw-r--r--
2023-02-22 10:03
parseerr.h
3.08
KB
-rw-r--r--
2023-02-22 10:03
parsepos.h
5.57
KB
-rw-r--r--
2023-02-22 10:03
platform.h
28.55
KB
-rw-r--r--
2023-02-22 10:03
plurfmt.h
25.25
KB
-rw-r--r--
2023-02-22 10:03
plurrule.h
20.62
KB
-rw-r--r--
2023-02-22 10:03
ptypes.h
3.49
KB
-rw-r--r--
2023-02-22 10:03
putil.h
6.32
KB
-rw-r--r--
2023-02-22 10:03
rbbi.h
28.46
KB
-rw-r--r--
2023-02-22 10:03
rbnf.h
49.82
KB
-rw-r--r--
2023-02-22 10:03
rbtz.h
15.77
KB
-rw-r--r--
2023-02-22 10:03
regex.h
84.41
KB
-rw-r--r--
2023-02-22 10:03
region.h
9.18
KB
-rw-r--r--
2023-02-22 10:03
reldatefmt.h
22.22
KB
-rw-r--r--
2023-02-22 10:03
rep.h
9.37
KB
-rw-r--r--
2023-02-22 10:03
resbund.h
18.09
KB
-rw-r--r--
2023-02-22 10:03
schriter.h
6.1
KB
-rw-r--r--
2023-02-22 10:03
scientificnumberformatter.h
6.44
KB
-rw-r--r--
2023-02-22 10:03
search.h
22.22
KB
-rw-r--r--
2023-02-22 10:03
selfmt.h
14.35
KB
-rw-r--r--
2023-02-22 10:03
simpleformatter.h
12.59
KB
-rw-r--r--
2023-02-22 10:03
simpletz.h
45.65
KB
-rw-r--r--
2023-02-22 10:03
smpdtfmt.h
71.93
KB
-rw-r--r--
2023-02-22 10:03
sortkey.h
11.18
KB
-rw-r--r--
2023-02-22 10:03
std_string.h
1.05
KB
-rw-r--r--
2023-02-22 10:03
strenum.h
9.92
KB
-rw-r--r--
2023-02-22 10:03
stringoptions.h
5.79
KB
-rw-r--r--
2023-02-22 10:03
stringpiece.h
10.05
KB
-rw-r--r--
2023-02-22 10:03
stringtriebuilder.h
15.47
KB
-rw-r--r--
2023-02-22 10:03
stsearch.h
21.42
KB
-rw-r--r--
2023-02-22 10:03
symtable.h
4.27
KB
-rw-r--r--
2023-02-22 10:03
tblcoll.h
36.92
KB
-rw-r--r--
2023-02-22 10:03
timezone.h
43.81
KB
-rw-r--r--
2023-02-22 10:03
tmunit.h
3.4
KB
-rw-r--r--
2023-02-22 10:03
tmutamt.h
4.91
KB
-rw-r--r--
2023-02-22 10:03
tmutfmt.h
7.42
KB
-rw-r--r--
2023-02-22 10:03
translit.h
65.82
KB
-rw-r--r--
2023-02-22 10:03
tzfmt.h
42.93
KB
-rw-r--r--
2023-02-22 10:03
tznames.h
16.85
KB
-rw-r--r--
2023-02-22 10:03
tzrule.h
34.86
KB
-rw-r--r--
2023-02-22 10:03
tztrans.h
6.13
KB
-rw-r--r--
2023-02-22 10:03
ubidi.h
89.61
KB
-rw-r--r--
2023-02-22 10:03
ubiditransform.h
12.71
KB
-rw-r--r--
2023-02-22 10:03
ubrk.h
24.43
KB
-rw-r--r--
2023-02-22 10:03
ucal.h
60.68
KB
-rw-r--r--
2023-02-22 10:03
ucasemap.h
15.21
KB
-rw-r--r--
2023-02-22 10:03
ucat.h
5.35
KB
-rw-r--r--
2023-02-22 10:03
uchar.h
145.09
KB
-rw-r--r--
2023-02-22 10:03
ucharstrie.h
22.53
KB
-rw-r--r--
2023-02-22 10:03
ucharstriebuilder.h
7.48
KB
-rw-r--r--
2023-02-22 10:03
uchriter.h
13.42
KB
-rw-r--r--
2023-02-22 10:03
uclean.h
11.2
KB
-rw-r--r--
2023-02-22 10:03
ucnv.h
83.46
KB
-rw-r--r--
2023-02-22 10:03
ucnv_cb.h
6.58
KB
-rw-r--r--
2023-02-22 10:03
ucnv_err.h
20.98
KB
-rw-r--r--
2023-02-22 10:03
ucnvsel.h
6.24
KB
-rw-r--r--
2023-02-22 10:03
ucol.h
61.95
KB
-rw-r--r--
2023-02-22 10:03
ucoleitr.h
9.82
KB
-rw-r--r--
2023-02-22 10:03
uconfig.h
12.07
KB
-rw-r--r--
2023-02-22 10:03
ucpmap.h
5.54
KB
-rw-r--r--
2023-02-22 10:03
ucptrie.h
22.51
KB
-rw-r--r--
2023-02-22 10:03
ucsdet.h
14.69
KB
-rw-r--r--
2023-02-22 10:03
ucurr.h
16.72
KB
-rw-r--r--
2023-02-22 10:03
udat.h
62.36
KB
-rw-r--r--
2023-02-22 10:03
udata.h
15.63
KB
-rw-r--r--
2023-02-22 10:03
udateintervalformat.h
11.93
KB
-rw-r--r--
2023-02-22 10:03
udatpg.h
30.18
KB
-rw-r--r--
2023-02-22 10:03
udisplaycontext.h
5.94
KB
-rw-r--r--
2023-02-22 10:03
udisplayoptions.h
8.8
KB
-rw-r--r--
2023-02-22 10:03
uenum.h
7.79
KB
-rw-r--r--
2023-02-22 10:03
ufieldpositer.h
4.41
KB
-rw-r--r--
2023-02-22 10:03
uformattable.h
10.97
KB
-rw-r--r--
2023-02-22 10:03
uformattedvalue.h
12.25
KB
-rw-r--r--
2023-02-22 10:03
ugender.h
2.06
KB
-rw-r--r--
2023-02-22 10:03
uidna.h
33.43
KB
-rw-r--r--
2023-02-22 10:03
uiter.h
22.75
KB
-rw-r--r--
2023-02-22 10:03
uldnames.h
10.48
KB
-rw-r--r--
2023-02-22 10:03
ulistformatter.h
10.78
KB
-rw-r--r--
2023-02-22 10:03
uloc.h
54.66
KB
-rw-r--r--
2023-02-22 10:03
ulocdata.h
11.3
KB
-rw-r--r--
2023-02-22 10:03
umachine.h
15.73
KB
-rw-r--r--
2023-02-22 10:03
umisc.h
1.34
KB
-rw-r--r--
2023-02-22 10:03
umsg.h
24.25
KB
-rw-r--r--
2023-02-22 10:03
umutablecptrie.h
8.3
KB
-rw-r--r--
2023-02-22 10:03
unifilt.h
4
KB
-rw-r--r--
2023-02-22 10:03
unifunct.h
4.05
KB
-rw-r--r--
2023-02-22 10:03
unimatch.h
6.1
KB
-rw-r--r--
2023-02-22 10:03
unirepl.h
3.38
KB
-rw-r--r--
2023-02-22 10:03
uniset.h
66.12
KB
-rw-r--r--
2023-02-22 10:03
unistr.h
170.53
KB
-rw-r--r--
2023-02-22 10:03
unorm.h
20.55
KB
-rw-r--r--
2023-02-22 10:03
unorm2.h
24.68
KB
-rw-r--r--
2023-02-22 10:03
unum.h
56.6
KB
-rw-r--r--
2023-02-22 10:03
unumberformatter.h
30.26
KB
-rw-r--r--
2023-02-22 10:03
unumberrangeformatter.h
15.35
KB
-rw-r--r--
2023-02-22 10:03
unumsys.h
7.26
KB
-rw-r--r--
2023-02-22 10:03
uobject.h
10.68
KB
-rw-r--r--
2023-02-22 10:03
upluralrules.h
8.79
KB
-rw-r--r--
2023-02-22 10:03
uregex.h
71.99
KB
-rw-r--r--
2023-02-22 10:03
uregion.h
9.81
KB
-rw-r--r--
2023-02-22 10:03
ureldatefmt.h
17.04
KB
-rw-r--r--
2023-02-22 10:03
urename.h
135.69
KB
-rw-r--r--
2023-02-22 10:03
urep.h
5.38
KB
-rw-r--r--
2023-02-22 10:03
ures.h
36.54
KB
-rw-r--r--
2023-02-22 10:03
uscript.h
27.8
KB
-rw-r--r--
2023-02-22 10:03
usearch.h
39.21
KB
-rw-r--r--
2023-02-22 10:03
uset.h
44.19
KB
-rw-r--r--
2023-02-22 10:03
usetiter.h
9.63
KB
-rw-r--r--
2023-02-22 10:03
ushape.h
18
KB
-rw-r--r--
2023-02-22 10:03
uspoof.h
65.84
KB
-rw-r--r--
2023-02-22 10:03
usprep.h
8.19
KB
-rw-r--r--
2023-02-22 10:03
ustdio.h
38.56
KB
-rw-r--r--
2023-02-22 10:03
ustream.h
1.89
KB
-rw-r--r--
2023-02-22 10:03
ustring.h
72.36
KB
-rw-r--r--
2023-02-22 10:03
ustringtrie.h
3.15
KB
-rw-r--r--
2023-02-22 10:03
utext.h
58.08
KB
-rw-r--r--
2023-02-22 10:03
utf.h
7.87
KB
-rw-r--r--
2023-02-22 10:03
utf16.h
23.35
KB
-rw-r--r--
2023-02-22 10:03
utf32.h
763
B
-rw-r--r--
2023-02-22 10:03
utf8.h
30.83
KB
-rw-r--r--
2023-02-22 10:03
utf_old.h
45.8
KB
-rw-r--r--
2023-02-22 10:03
utmscale.h
13.78
KB
-rw-r--r--
2023-02-22 10:03
utrace.h
17.18
KB
-rw-r--r--
2023-02-22 10:03
utrans.h
25.54
KB
-rw-r--r--
2023-02-22 10:03
utypes.h
31.06
KB
-rw-r--r--
2023-02-22 10:03
uvernum.h
6.33
KB
-rw-r--r--
2023-02-22 10:03
uversion.h
5.99
KB
-rw-r--r--
2023-02-22 10:03
vtzone.h
20.68
KB
-rw-r--r--
2023-02-22 10:03
Save
Rename
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ****************************************************************************** * * Copyright (C) 1999-2015, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** * file name: umachine.h * encoding: UTF-8 * tab size: 8 (not used) * indentation:4 * * created on: 1999sep13 * created by: Markus W. Scherer * * This file defines basic types and constants for ICU to be * platform-independent. umachine.h and utf.h are included into * utypes.h to provide all the general definitions for ICU. * All of these definitions used to be in utypes.h before * the UTF-handling macros made this unmaintainable. */ #ifndef __UMACHINE_H__ #define __UMACHINE_H__ /** * \file * \brief Basic types and constants for UTF * * <h2> Basic types and constants for UTF </h2> * This file defines basic types and constants for utf.h to be * platform-independent. umachine.h and utf.h are included into * utypes.h to provide all the general definitions for ICU. * All of these definitions used to be in utypes.h before * the UTF-handling macros made this unmaintainable. * */ /*==========================================================================*/ /* Include platform-dependent definitions */ /* which are contained in the platform-specific file platform.h */ /*==========================================================================*/ #include "unicode/ptypes.h" /* platform.h is included in ptypes.h */ /* * ANSI C headers: * stddef.h defines wchar_t */ #include <stdbool.h> #include <stddef.h> /*==========================================================================*/ /* For C wrappers, we use the symbol U_CAPI. */ /* This works properly if the includer is C or C++. */ /* Functions are declared U_CAPI return-type U_EXPORT2 function-name()... */ /*==========================================================================*/ /** * \def U_CFUNC * This is used in a declaration of a library private ICU C function. * @stable ICU 2.4 */ /** * \def U_CDECL_BEGIN * This is used to begin a declaration of a library private ICU C API. * @stable ICU 2.4 */ /** * \def U_CDECL_END * This is used to end a declaration of a library private ICU C API * @stable ICU 2.4 */ #ifdef __cplusplus # define U_CFUNC extern "C" # define U_CDECL_BEGIN extern "C" { # define U_CDECL_END } #else # define U_CFUNC extern # define U_CDECL_BEGIN # define U_CDECL_END #endif #ifndef U_ATTRIBUTE_DEPRECATED /** * \def U_ATTRIBUTE_DEPRECATED * This is used for GCC specific attributes * @internal */ #if U_GCC_MAJOR_MINOR >= 302 # define U_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated)) /** * \def U_ATTRIBUTE_DEPRECATED * This is used for Visual C++ specific attributes * @internal */ #elif defined(_MSC_VER) && (_MSC_VER >= 1400) # define U_ATTRIBUTE_DEPRECATED __declspec(deprecated) #else # define U_ATTRIBUTE_DEPRECATED #endif #endif /** This is used to declare a function as a public ICU C API @stable ICU 2.0*/ #define U_CAPI U_CFUNC U_EXPORT /** Obsolete/same as U_CAPI; was used to declare a function as a stable public ICU C API*/ #define U_STABLE U_CAPI /** Obsolete/same as U_CAPI; was used to declare a function as a draft public ICU C API */ #define U_DRAFT U_CAPI /** This is used to declare a function as a deprecated public ICU C API */ #define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED /** Obsolete/same as U_CAPI; was used to declare a function as an obsolete public ICU C API */ #define U_OBSOLETE U_CAPI /** Obsolete/same as U_CAPI; was used to declare a function as an internal ICU C API */ #define U_INTERNAL U_CAPI /** * \def U_OVERRIDE * Defined to the C++11 "override" keyword if available. * Denotes a class or member which is an override of the base class. * May result in an error if it applied to something not an override. * @internal */ #ifndef U_OVERRIDE #define U_OVERRIDE override #endif /** * \def U_FINAL * Defined to the C++11 "final" keyword if available. * Denotes a class or member which may not be overridden in subclasses. * May result in an error if subclasses attempt to override. * @internal */ #if !defined(U_FINAL) || defined(U_IN_DOXYGEN) #define U_FINAL final #endif // Before ICU 65, function-like, multi-statement ICU macros were just defined as // series of statements wrapped in { } blocks and the caller could choose to // either treat them as if they were actual functions and end the invocation // with a trailing ; creating an empty statement after the block or else omit // this trailing ; using the knowledge that the macro would expand to { }. // // But doing so doesn't work well with macros that look like functions and // compiler warnings about empty statements (ICU-20601) and ICU 65 therefore // switches to the standard solution of wrapping such macros in do { } while. // // This will however break existing code that depends on being able to invoke // these macros without a trailing ; so to be able to remain compatible with // such code the wrapper is itself defined as macros so that it's possible to // build ICU 65 and later with the old macro behaviour, like this: // // export CPPFLAGS='-DUPRV_BLOCK_MACRO_BEGIN="" -DUPRV_BLOCK_MACRO_END=""' // runConfigureICU ... // /** * \def UPRV_BLOCK_MACRO_BEGIN * Defined as the "do" keyword by default. * @internal */ #ifndef UPRV_BLOCK_MACRO_BEGIN #define UPRV_BLOCK_MACRO_BEGIN do #endif /** * \def UPRV_BLOCK_MACRO_END * Defined as "while (false)" by default. * @internal */ #ifndef UPRV_BLOCK_MACRO_END #define UPRV_BLOCK_MACRO_END while (false) #endif /*==========================================================================*/ /* limits for int32_t etc., like in POSIX inttypes.h */ /*==========================================================================*/ #ifndef INT8_MIN /** The smallest value an 8 bit signed integer can hold @stable ICU 2.0 */ # define INT8_MIN ((int8_t)(-128)) #endif #ifndef INT16_MIN /** The smallest value a 16 bit signed integer can hold @stable ICU 2.0 */ # define INT16_MIN ((int16_t)(-32767-1)) #endif #ifndef INT32_MIN /** The smallest value a 32 bit signed integer can hold @stable ICU 2.0 */ # define INT32_MIN ((int32_t)(-2147483647-1)) #endif #ifndef INT8_MAX /** The largest value an 8 bit signed integer can hold @stable ICU 2.0 */ # define INT8_MAX ((int8_t)(127)) #endif #ifndef INT16_MAX /** The largest value a 16 bit signed integer can hold @stable ICU 2.0 */ # define INT16_MAX ((int16_t)(32767)) #endif #ifndef INT32_MAX /** The largest value a 32 bit signed integer can hold @stable ICU 2.0 */ # define INT32_MAX ((int32_t)(2147483647)) #endif #ifndef UINT8_MAX /** The largest value an 8 bit unsigned integer can hold @stable ICU 2.0 */ # define UINT8_MAX ((uint8_t)(255U)) #endif #ifndef UINT16_MAX /** The largest value a 16 bit unsigned integer can hold @stable ICU 2.0 */ # define UINT16_MAX ((uint16_t)(65535U)) #endif #ifndef UINT32_MAX /** The largest value a 32 bit unsigned integer can hold @stable ICU 2.0 */ # define UINT32_MAX ((uint32_t)(4294967295U)) #endif #if defined(U_INT64_T_UNAVAILABLE) # error int64_t is required for decimal format and rule-based number format. #else # ifndef INT64_C /** * Provides a platform independent way to specify a signed 64-bit integer constant. * note: may be wrong for some 64 bit platforms - ensure your compiler provides INT64_C * @stable ICU 2.8 */ # define INT64_C(c) c ## LL # endif # ifndef UINT64_C /** * Provides a platform independent way to specify an unsigned 64-bit integer constant. * note: may be wrong for some 64 bit platforms - ensure your compiler provides UINT64_C * @stable ICU 2.8 */ # define UINT64_C(c) c ## ULL # endif # ifndef U_INT64_MIN /** The smallest value a 64 bit signed integer can hold @stable ICU 2.8 */ # define U_INT64_MIN ((int64_t)(INT64_C(-9223372036854775807)-1)) # endif # ifndef U_INT64_MAX /** The largest value a 64 bit signed integer can hold @stable ICU 2.8 */ # define U_INT64_MAX ((int64_t)(INT64_C(9223372036854775807))) # endif # ifndef U_UINT64_MAX /** The largest value a 64 bit unsigned integer can hold @stable ICU 2.8 */ # define U_UINT64_MAX ((uint64_t)(UINT64_C(18446744073709551615))) # endif #endif /*==========================================================================*/ /* Boolean data type */ /*==========================================================================*/ /** * The ICU boolean type, a signed-byte integer. * ICU-specific for historical reasons: The C and C++ standards used to not define type bool. * Also provides a fixed type definition, as opposed to * type bool whose details (e.g., sizeof) may vary by compiler and between C and C++. * * @stable ICU 2.0 */ typedef int8_t UBool; /** * \def U_DEFINE_FALSE_AND_TRUE * Normally turns off defining macros FALSE=0 & TRUE=1 in public ICU headers. * These obsolete macros sometimes break compilation of other code that * defines enum constants or similar with these names. * C++ has long defined bool/false/true. * C99 also added definitions for these, although as macros; see stdbool.h. * * You may transitionally define U_DEFINE_FALSE_AND_TRUE=1 if you need time to migrate code. * * @internal ICU 68 */ #ifdef U_DEFINE_FALSE_AND_TRUE // Use the predefined value. #else // Default to avoiding collision with non-macro definitions of FALSE & TRUE. # define U_DEFINE_FALSE_AND_TRUE 0 #endif #if U_DEFINE_FALSE_AND_TRUE || defined(U_IN_DOXYGEN) #ifndef TRUE /** * The TRUE value of a UBool. * * @deprecated ICU 68 Use standard "true" instead. */ # define TRUE 1 #endif #ifndef FALSE /** * The FALSE value of a UBool. * * @deprecated ICU 68 Use standard "false" instead. */ # define FALSE 0 #endif #endif // U_DEFINE_FALSE_AND_TRUE /*==========================================================================*/ /* Unicode data types */ /*==========================================================================*/ /* wchar_t-related definitions -------------------------------------------- */ /* * \def U_WCHAR_IS_UTF16 * Defined if wchar_t uses UTF-16. * * @stable ICU 2.0 */ /* * \def U_WCHAR_IS_UTF32 * Defined if wchar_t uses UTF-32. * * @stable ICU 2.0 */ #if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32) # ifdef __STDC_ISO_10646__ # if (U_SIZEOF_WCHAR_T==2) # define U_WCHAR_IS_UTF16 # elif (U_SIZEOF_WCHAR_T==4) # define U_WCHAR_IS_UTF32 # endif # elif defined __UCS2__ # if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T==2) # define U_WCHAR_IS_UTF16 # endif # elif defined(__UCS4__) || (U_PLATFORM == U_PF_OS400 && defined(__UTF32__)) # if (U_SIZEOF_WCHAR_T==4) # define U_WCHAR_IS_UTF32 # endif # elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T==4 && U_PLATFORM_IS_LINUX_BASED) # define U_WCHAR_IS_UTF32 # elif U_PLATFORM_HAS_WIN32_API # define U_WCHAR_IS_UTF16 # endif #endif /* UChar and UChar32 definitions -------------------------------------------- */ /** Number of bytes in a UChar. @stable ICU 2.0 */ #define U_SIZEOF_UCHAR 2 /** * \def U_CHAR16_IS_TYPEDEF * If 1, then char16_t is a typedef and not a real type (yet) * @internal */ #if (U_PLATFORM == U_PF_AIX) && defined(__cplusplus) &&(U_CPLUSPLUS_VERSION < 11) // for AIX, uchar.h needs to be included # include <uchar.h> # define U_CHAR16_IS_TYPEDEF 1 #elif defined(_MSC_VER) && (_MSC_VER < 1900) // Versions of Visual Studio/MSVC below 2015 do not support char16_t as a real type, // and instead use a typedef. https://msdn.microsoft.com/library/bb531344.aspx # define U_CHAR16_IS_TYPEDEF 1 #else # define U_CHAR16_IS_TYPEDEF 0 #endif /** * \var UChar * * The base type for UTF-16 code units and pointers. * Unsigned 16-bit integer. * Starting with ICU 59, C++ API uses char16_t directly, while C API continues to use UChar. * * UChar is configurable by defining the macro UCHAR_TYPE * on the preprocessor or compiler command line: * -DUCHAR_TYPE=uint16_t or -DUCHAR_TYPE=wchar_t (if U_SIZEOF_WCHAR_T==2) etc. * (The UCHAR_TYPE can also be \#defined earlier in this file, for outside the ICU library code.) * This is for transitional use from application code that uses uint16_t or wchar_t for UTF-16. * * The default is UChar=char16_t. * * C++11 defines char16_t as bit-compatible with uint16_t, but as a distinct type. * * In C, char16_t is a simple typedef of uint_least16_t. * ICU requires uint_least16_t=uint16_t for data memory mapping. * On macOS, char16_t is not available because the uchar.h standard header is missing. * * @stable ICU 4.4 */ #if 1 // #if 1 is normal. UChar defaults to char16_t in C++. // For configuration testing of UChar=uint16_t temporarily change this to #if 0. // The intltest Makefile #defines UCHAR_TYPE=char16_t, // so we only #define it to uint16_t if it is undefined so far. #elif !defined(UCHAR_TYPE) # define UCHAR_TYPE uint16_t #endif #if defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || \ defined(U_I18N_IMPLEMENTATION) || defined(U_IO_IMPLEMENTATION) // Inside the ICU library code, never configurable. typedef char16_t UChar; #elif defined(UCHAR_TYPE) typedef UCHAR_TYPE UChar; #elif (U_CPLUSPLUS_VERSION >= 11) typedef char16_t UChar; #else typedef uint16_t UChar; #endif /** * \var OldUChar * Default ICU 58 definition of UChar. * A base type for UTF-16 code units and pointers. * Unsigned 16-bit integer. * * Define OldUChar to be wchar_t if that is 16 bits wide. * If wchar_t is not 16 bits wide, then define UChar to be uint16_t. * * This makes the definition of OldUChar platform-dependent * but allows direct string type compatibility with platforms with * 16-bit wchar_t types. * * This is how UChar was defined in ICU 58, for transition convenience. * Exception: ICU 58 UChar was defined to UCHAR_TYPE if that macro was defined. * The current UChar responds to UCHAR_TYPE but OldUChar does not. * * @stable ICU 59 */ #if U_SIZEOF_WCHAR_T==2 typedef wchar_t OldUChar; #elif defined(__CHAR16_TYPE__) typedef __CHAR16_TYPE__ OldUChar; #else typedef uint16_t OldUChar; #endif /** * Define UChar32 as a type for single Unicode code points. * UChar32 is a signed 32-bit integer (same as int32_t). * * The Unicode code point range is 0..0x10ffff. * All other values (negative or >=0x110000) are illegal as Unicode code points. * They may be used as sentinel values to indicate "done", "error" * or similar non-code point conditions. * * Before ICU 2.4 (Jitterbug 2146), UChar32 was defined * to be wchar_t if that is 32 bits wide (wchar_t may be signed or unsigned) * or else to be uint32_t. * That is, the definition of UChar32 was platform-dependent. * * @see U_SENTINEL * @stable ICU 2.4 */ typedef int32_t UChar32; /** * This value is intended for sentinel values for APIs that * (take or) return single code points (UChar32). * It is outside of the Unicode code point range 0..0x10ffff. * * For example, a "done" or "error" value in a new API * could be indicated with U_SENTINEL. * * ICU APIs designed before ICU 2.4 usually define service-specific "done" * values, mostly 0xffff. * Those may need to be distinguished from * actual U+ffff text contents by calling functions like * CharacterIterator::hasNext() or UnicodeString::length(). * * @return -1 * @see UChar32 * @stable ICU 2.4 */ #define U_SENTINEL (-1) #include "unicode/urename.h" #endif