X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs20/root/usr/include/unicode
opt
/
alt
/
alt-nodejs20
/
root
/
usr
/
include
/
unicode
/
??
..
??
alphaindex.h
(26.43 KB)
??
appendable.h
(8.54 KB)
??
basictz.h
(9.99 KB)
??
brkiter.h
(28.52 KB)
??
bytestream.h
(11.79 KB)
??
bytestrie.h
(20.83 KB)
??
bytestriebuilder.h
(7.44 KB)
??
calendar.h
(110.47 KB)
??
caniter.h
(7.47 KB)
??
casemap.h
(25.42 KB)
??
char16ptr.h
(10.79 KB)
??
chariter.h
(23.79 KB)
??
choicfmt.h
(23.99 KB)
??
coleitr.h
(13.78 KB)
??
coll.h
(59.5 KB)
??
compactdecimalformat.h
(6.88 KB)
??
curramt.h
(3.67 KB)
??
currpinf.h
(7.3 KB)
??
currunit.h
(4.02 KB)
??
datefmt.h
(41.29 KB)
??
dbbi.h
(1.19 KB)
??
dcfmtsym.h
(21.27 KB)
??
decimfmt.h
(87.45 KB)
??
displayoptions.h
(7.08 KB)
??
docmain.h
(7.66 KB)
??
dtfmtsym.h
(41.04 KB)
??
dtintrv.h
(3.84 KB)
??
dtitvfmt.h
(49.2 KB)
??
dtitvinf.h
(18.54 KB)
??
dtptngen.h
(29.28 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.36 KB)
??
format.h
(12.78 KB)
??
formattednumber.h
(6.25 KB)
??
formattedvalue.h
(9.75 KB)
??
fpositer.h
(3.03 KB)
??
gender.h
(3.35 KB)
??
gregocal.h
(30.05 KB)
??
icudataver.h
(1.02 KB)
??
icuplug.h
(12.1 KB)
??
idna.h
(12.93 KB)
??
listformatter.h
(8.59 KB)
??
localebuilder.h
(11.09 KB)
??
localematcher.h
(26.86 KB)
??
localpointer.h
(19.52 KB)
??
locdspnm.h
(7.12 KB)
??
locid.h
(53.98 KB)
??
measfmt.h
(11.41 KB)
??
measunit.h
(133.12 KB)
??
measure.h
(4.63 KB)
??
messageformat2.h
(21.59 KB)
??
messageformat2_arguments.h
(3.84 KB)
??
messageformat2_data_model.h
(96.61 KB)
??
messageformat2_data_model_names.h
(784 B)
??
messageformat2_formattable.h
(39.37 KB)
??
messageformat2_function_registry.h
(18.07 KB)
??
messagepattern.h
(33.79 KB)
??
msgfmt.h
(44.94 KB)
??
normalizer2.h
(34.68 KB)
??
normlzr.h
(30.79 KB)
??
nounit.h
(2.24 KB)
??
numberformatter.h
(90.72 KB)
??
numberrangeformatter.h
(25.68 KB)
??
numfmt.h
(50.16 KB)
??
numsys.h
(7.22 KB)
??
parseerr.h
(3.08 KB)
??
parsepos.h
(5.56 KB)
??
platform.h
(27.19 KB)
??
plurfmt.h
(25.46 KB)
??
plurrule.h
(20.63 KB)
??
ptypes.h
(2.16 KB)
??
putil.h
(6.32 KB)
??
rbbi.h
(31.73 KB)
??
rbnf.h
(57.19 KB)
??
rbtz.h
(15.75 KB)
??
regex.h
(83.83 KB)
??
region.h
(9.2 KB)
??
reldatefmt.h
(22.69 KB)
??
rep.h
(9.38 KB)
??
resbund.h
(18.02 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.87 KB)
??
simpletz.h
(45.62 KB)
??
smpdtfmt.h
(57.57 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.29 KB)
??
stringtriebuilder.h
(15.53 KB)
??
stsearch.h
(21.43 KB)
??
symtable.h
(4.28 KB)
??
tblcoll.h
(38.79 KB)
??
timezone.h
(45.59 KB)
??
tmunit.h
(3.37 KB)
??
tmutamt.h
(4.9 KB)
??
tmutfmt.h
(7.42 KB)
??
translit.h
(65.81 KB)
??
tzfmt.h
(44.76 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.95 KB)
??
ucasemap.h
(15.27 KB)
??
ucat.h
(5.35 KB)
??
uchar.h
(152.33 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
(67.35 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.66 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
(15.25 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.18 KB)
??
unistr.h
(184.51 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.6 KB)
??
upluralrules.h
(8.79 KB)
??
uregex.h
(71.99 KB)
??
uregion.h
(9.81 KB)
??
ureldatefmt.h
(16.98 KB)
??
urename.h
(142.22 KB)
??
urep.h
(5.38 KB)
??
ures.h
(36.65 KB)
??
uscript.h
(28.95 KB)
??
usearch.h
(39.21 KB)
??
uset.h
(63.03 KB)
??
usetiter.h
(9.63 KB)
??
ushape.h
(18 KB)
??
usimplenumberformatter.h
(7.31 KB)
??
uspoof.h
(80 KB)
??
usprep.h
(8.19 KB)
??
ustdio.h
(38.58 KB)
??
ustream.h
(1.89 KB)
??
ustring.h
(72.16 KB)
??
ustringtrie.h
(3.15 KB)
??
utext.h
(58.1 KB)
??
utf.h
(8.65 KB)
??
utf16.h
(23.35 KB)
??
utf32.h
(763 B)
??
utf8.h
(31.65 KB)
??
utf_old.h
(45.85 KB)
??
utfiterator.h
(95.02 KB)
??
utfstring.h
(4.89 KB)
??
utmscale.h
(13.78 KB)
??
utrace.h
(17.18 KB)
??
utrans.h
(25.54 KB)
??
utypes.h
(36.73 KB)
??
uvernum.h
(6.33 KB)
??
uversion.h
(8.21 KB)
??
vtzone.h
(20.68 KB)
Editing: utfstring.h
// © 2025 and later: Unicode, Inc. and others. // License & terms of use: https://www.unicode.org/copyright.html // utfstring.h // created: 2025jul18 Markus W. Scherer #ifndef __UTFSTRING_H__ #define __UTFSTRING_H__ #include "unicode/utypes.h" #if U_SHOW_CPLUSPLUS_API || U_SHOW_CPLUSPLUS_HEADER_API || !defined(UTYPES_H) #include "unicode/utf16.h" /** * \file * \brief C++ header-only API: C++ string helper functions. */ #ifndef U_HIDE_DRAFT_API namespace U_HEADER_ONLY_NAMESPACE { namespace utfstring { // Write code points to strings -------------------------------------------- *** #ifndef U_IN_DOXYGEN namespace prv { // This function, and the public wrappers, // want to be U_FORCE_INLINE but the gcc-debug-build-and-test CI check failed with // error: ‘always_inline’ function might not be inlinable [-Werror=attributes] template<typename StringClass, bool validate> inline StringClass &appendCodePoint(StringClass &s, uint32_t c) { using Unit = typename StringClass::value_type; if constexpr (sizeof(Unit) == 1) { // UTF-8: Similar to U8_APPEND(). if (c <= 0x7f) { s.push_back(static_cast<Unit>(c)); } else { Unit buf[4]; uint8_t len; if (c <= 0x7ff) { len = 2; buf[2] = (c >> 6) | 0xc0; } else { if (validate ? c < 0xd800 || (c < 0xe000 || c > 0x10ffff ? (c = 0xfffd, true) : c <= 0xffff) : c <= 0xffff) { len = 3; buf[1] = (c >> 12) | 0xe0; } else { len = 4; buf[0] = (c >> 18) | 0xf0; buf[1] = ((c >> 12) & 0x3f) | 0x80; } buf[2] = ((c >> 6) & 0x3f) | 0x80; } buf[3] = (c & 0x3f) | 0x80; s.append(buf + 4 - len, len); } } else if constexpr (sizeof(Unit) == 2) { // UTF-16: Similar to U16_APPEND(). if (validate ? c < 0xd800 || (c < 0xe000 || c > 0x10ffff ? (c = 0xfffd, true) : c <= 0xffff) : c <= 0xffff) { s.push_back(static_cast<Unit>(c)); } else { Unit buf[2] = { U16_LEAD(c), U16_TRAIL(c) }; s.append(buf, 2); } } else { // UTF-32 s.push_back(!validate || U_IS_SCALAR_VALUE(c) ? c : 0xfffd); } return s; } } // namespace prv #endif // U_IN_DOXYGEN #ifndef U_HIDE_DRAFT_API /** * Appends the code point to the string. * Appends the U+FFFD replacement character instead if c is not a scalar value. * See https://www.unicode.org/glossary/#unicode_scalar_value * * @tparam StringClass A version of std::basic_string (or a compatible type) * @param s The string to append to * @param c The code point to append * @return s * @draft ICU 78 * @see U_IS_SCALAR_VALUE */ template<typename StringClass> inline StringClass &appendOrFFFD(StringClass &s, UChar32 c) { return prv::appendCodePoint<StringClass, true>(s, c); } /** * Appends the code point to the string. * The code point must be a scalar value; otherwise the behavior is undefined. * See https://www.unicode.org/glossary/#unicode_scalar_value * * @tparam StringClass A version of std::basic_string (or a compatible type) * @param s The string to append to * @param c The code point to append (must be a scalar value) * @return s * @draft ICU 78 * @see U_IS_SCALAR_VALUE */ template<typename StringClass> inline StringClass &appendUnsafe(StringClass &s, UChar32 c) { return prv::appendCodePoint<StringClass, false>(s, c); } /** * Returns the code point as a string of code units. * Returns the U+FFFD replacement character instead if c is not a scalar value. * See https://www.unicode.org/glossary/#unicode_scalar_value * * @tparam StringClass A version of std::basic_string (or a compatible type) * @param c The code point * @return the string of c's code units * @draft ICU 78 * @see U_IS_SCALAR_VALUE */ template<typename StringClass> inline StringClass encodeOrFFFD(UChar32 c) { StringClass s; prv::appendCodePoint<StringClass, true>(s, c); return s; } /** * Returns the code point as a string of code units. * The code point must be a scalar value; otherwise the behavior is undefined. * See https://www.unicode.org/glossary/#unicode_scalar_value * * @tparam StringClass A version of std::basic_string (or a compatible type) * @param c The code point * @return the string of c's code units * @draft ICU 78 * @see U_IS_SCALAR_VALUE */ template<typename StringClass> inline StringClass encodeUnsafe(UChar32 c) { StringClass s; prv::appendCodePoint<StringClass, false>(s, c); return s; } #endif // U_HIDE_DRAFT_API } // namespace utfstring } // namespace U_HEADER_ONLY_NAMESPACE #endif // U_HIDE_DRAFT_API #endif // U_SHOW_CPLUSPLUS_API || U_SHOW_CPLUSPLUS_HEADER_API #endif // __UTFSTRING_H__
Upload File
Create Folder