Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
unicode /
Delete
Unzip
Name
Size
Permission
Date
Action
alphaindex.h
25.29
KB
-rw-r--r--
2020-03-20 20:49
appendable.h
8.38
KB
-rw-r--r--
2020-03-20 20:49
basictz.h
8.77
KB
-rw-r--r--
2020-03-20 20:49
bms.h
8.68
KB
-rw-r--r--
2020-03-20 20:49
bmsearch.h
7.33
KB
-rw-r--r--
2020-03-20 20:49
brkiter.h
24.24
KB
-rw-r--r--
2020-03-20 20:49
bytestream.h
9.16
KB
-rw-r--r--
2020-03-20 20:49
bytestrie.h
19.19
KB
-rw-r--r--
2020-03-20 20:49
bytestriebuilder.h
6.73
KB
-rw-r--r--
2020-03-20 20:49
calendar.h
102.76
KB
-rw-r--r--
2020-03-20 20:49
caniter.h
7.23
KB
-rw-r--r--
2020-03-20 20:49
chariter.h
23.71
KB
-rw-r--r--
2020-03-20 20:49
choicfmt.h
27.82
KB
-rw-r--r--
2020-03-20 20:49
coleitr.h
12.69
KB
-rw-r--r--
2020-03-20 20:49
coll.h
53.44
KB
-rw-r--r--
2020-03-20 20:49
colldata.h
12.42
KB
-rw-r--r--
2020-03-20 20:49
curramt.h
3.57
KB
-rw-r--r--
2020-03-20 20:49
currpinf.h
6.93
KB
-rw-r--r--
2020-03-20 20:49
currunit.h
2.99
KB
-rw-r--r--
2020-03-20 20:49
datefmt.h
33.67
KB
-rw-r--r--
2020-03-20 20:49
dbbi.h
966
B
-rw-r--r--
2020-03-20 20:49
dcfmtsym.h
14.91
KB
-rw-r--r--
2020-03-20 20:49
decimfmt.h
97.38
KB
-rw-r--r--
2020-03-20 20:49
docmain.h
6.28
KB
-rw-r--r--
2020-03-20 20:49
dtfmtsym.h
30.27
KB
-rw-r--r--
2020-03-20 20:49
dtintrv.h
3.65
KB
-rw-r--r--
2020-03-20 20:49
dtitvfmt.h
39.24
KB
-rw-r--r--
2020-03-20 20:49
dtitvinf.h
18.56
KB
-rw-r--r--
2020-03-20 20:49
dtptngen.h
19.54
KB
-rw-r--r--
2020-03-20 20:49
dtrule.h
8.51
KB
-rw-r--r--
2020-03-20 20:49
enumset.h
1.8
KB
-rw-r--r--
2020-03-20 20:49
errorcode.h
4.67
KB
-rw-r--r--
2020-03-20 20:49
fieldpos.h
8.51
KB
-rw-r--r--
2020-03-20 20:49
fmtable.h
22.09
KB
-rw-r--r--
2020-03-20 20:49
format.h
12.33
KB
-rw-r--r--
2020-03-20 20:49
fpositer.h
2.97
KB
-rw-r--r--
2020-03-20 20:49
gender.h
3.02
KB
-rw-r--r--
2020-03-20 20:49
gregocal.h
33.28
KB
-rw-r--r--
2020-03-20 20:49
icudataver.h
990
B
-rw-r--r--
2020-03-20 20:49
icuplug.h
11.49
KB
-rw-r--r--
2020-03-20 20:49
idna.h
12.68
KB
-rw-r--r--
2020-03-20 20:49
listformatter.h
3.97
KB
-rw-r--r--
2020-03-20 20:49
localpointer.h
9.13
KB
-rw-r--r--
2020-03-20 20:49
locdspnm.h
7.14
KB
-rw-r--r--
2020-03-20 20:49
locid.h
30.48
KB
-rw-r--r--
2020-03-20 20:49
measfmt.h
1.94
KB
-rw-r--r--
2020-03-20 20:49
measunit.h
1.6
KB
-rw-r--r--
2020-03-20 20:49
measure.h
3.24
KB
-rw-r--r--
2020-03-20 20:49
messagepattern.h
33.6
KB
-rw-r--r--
2020-03-20 20:49
msgfmt.h
43.59
KB
-rw-r--r--
2020-03-20 20:49
normalizer2.h
28.34
KB
-rw-r--r--
2020-03-20 20:49
normlzr.h
29.26
KB
-rw-r--r--
2020-03-20 20:49
numfmt.h
43.59
KB
-rw-r--r--
2020-03-20 20:49
numsys.h
5.37
KB
-rw-r--r--
2020-03-20 20:49
parseerr.h
2.97
KB
-rw-r--r--
2020-03-20 20:49
parsepos.h
5.34
KB
-rw-r--r--
2020-03-20 20:49
platform.h
24.23
KB
-rw-r--r--
2020-03-20 20:49
plurfmt.h
24.58
KB
-rw-r--r--
2020-03-20 20:49
plurrule.h
14.56
KB
-rw-r--r--
2020-03-20 20:49
ptypes.h
3.36
KB
-rw-r--r--
2020-03-20 20:49
putil.h
5.61
KB
-rw-r--r--
2020-03-20 20:49
rbbi.h
29.15
KB
-rw-r--r--
2020-03-20 20:49
rbnf.h
45.32
KB
-rw-r--r--
2020-03-20 20:49
rbtz.h
15.33
KB
-rw-r--r--
2020-03-20 20:49
regex.h
83.1
KB
-rw-r--r--
2020-03-20 20:49
rep.h
9.33
KB
-rw-r--r--
2020-03-20 20:49
resbund.h
17.89
KB
-rw-r--r--
2020-03-20 20:49
schriter.h
6.15
KB
-rw-r--r--
2020-03-20 20:49
search.h
22.1
KB
-rw-r--r--
2020-03-20 20:49
selfmt.h
14.13
KB
-rw-r--r--
2020-03-20 20:49
simpletz.h
45.1
KB
-rw-r--r--
2020-03-20 20:49
smpdtfmt.h
57.58
KB
-rw-r--r--
2020-03-20 20:49
sortkey.h
10.98
KB
-rw-r--r--
2020-03-20 20:49
std_string.h
783
B
-rw-r--r--
2020-03-20 20:49
strenum.h
9.92
KB
-rw-r--r--
2020-03-20 20:49
stringpiece.h
6.38
KB
-rw-r--r--
2020-03-20 20:49
stringtriebuilder.h
14.75
KB
-rw-r--r--
2020-03-20 20:49
stsearch.h
21.76
KB
-rw-r--r--
2020-03-20 20:49
symtable.h
4.1
KB
-rw-r--r--
2020-03-20 20:49
tblcoll.h
34.23
KB
-rw-r--r--
2020-03-20 20:49
timezone.h
37.28
KB
-rw-r--r--
2020-03-20 20:49
tmunit.h
3.39
KB
-rw-r--r--
2020-03-20 20:49
tmutamt.h
4.69
KB
-rw-r--r--
2020-03-20 20:49
tmutfmt.h
8.51
KB
-rw-r--r--
2020-03-20 20:49
translit.h
53.76
KB
-rw-r--r--
2020-03-20 20:49
tzfmt.h
32.06
KB
-rw-r--r--
2020-03-20 20:49
tznames.h
14.83
KB
-rw-r--r--
2020-03-20 20:49
tzrule.h
35.21
KB
-rw-r--r--
2020-03-20 20:49
tztrans.h
5.96
KB
-rw-r--r--
2020-03-20 20:49
ubidi.h
88.57
KB
-rw-r--r--
2020-03-20 20:49
ubrk.h
19.13
KB
-rw-r--r--
2020-03-20 20:49
ucal.h
50.49
KB
-rw-r--r--
2020-03-20 20:49
ucasemap.h
16.45
KB
-rw-r--r--
2020-03-20 20:49
ucat.h
5.25
KB
-rw-r--r--
2020-03-20 20:49
uchar.h
115.43
KB
-rw-r--r--
2020-03-20 20:49
ucharstrie.h
20.8
KB
-rw-r--r--
2020-03-20 20:49
ucharstriebuilder.h
6.83
KB
-rw-r--r--
2020-03-20 20:49
uchriter.h
12.82
KB
-rw-r--r--
2020-03-20 20:49
uclean.h
10.38
KB
-rw-r--r--
2020-03-20 20:49
ucnv.h
82.6
KB
-rw-r--r--
2020-03-20 20:49
ucnv_cb.h
6.48
KB
-rw-r--r--
2020-03-20 20:49
ucnv_err.h
20.87
KB
-rw-r--r--
2020-03-20 20:49
ucnvsel.h
6.03
KB
-rw-r--r--
2020-03-20 20:49
ucol.h
57.93
KB
-rw-r--r--
2020-03-20 20:49
ucoleitr.h
12.25
KB
-rw-r--r--
2020-03-20 20:49
uconfig.h
10.79
KB
-rw-r--r--
2020-03-20 20:49
ucsdet.h
12.6
KB
-rw-r--r--
2020-03-20 20:49
ucurr.h
12.96
KB
-rw-r--r--
2020-03-20 20:49
udat.h
46.47
KB
-rw-r--r--
2020-03-20 20:49
udata.h
14.81
KB
-rw-r--r--
2020-03-20 20:49
udateintervalformat.h
6.5
KB
-rw-r--r--
2020-03-20 20:49
udatpg.h
23.24
KB
-rw-r--r--
2020-03-20 20:49
udisplaycontext.h
4.34
KB
-rw-r--r--
2020-03-20 20:49
uenum.h
7.79
KB
-rw-r--r--
2020-03-20 20:49
ugender.h
1.85
KB
-rw-r--r--
2020-03-20 20:49
uidna.h
32.81
KB
-rw-r--r--
2020-03-20 20:49
uiter.h
22.67
KB
-rw-r--r--
2020-03-20 20:49
uldnames.h
10.5
KB
-rw-r--r--
2020-03-20 20:49
uloc.h
44.07
KB
-rw-r--r--
2020-03-20 20:49
ulocdata.h
10.37
KB
-rw-r--r--
2020-03-20 20:49
umachine.h
10.23
KB
-rw-r--r--
2020-03-20 20:49
umisc.h
1.23
KB
-rw-r--r--
2020-03-20 20:49
umsg.h
24.12
KB
-rw-r--r--
2020-03-20 20:49
unifilt.h
3.52
KB
-rw-r--r--
2020-03-20 20:49
unifunct.h
3.87
KB
-rw-r--r--
2020-03-20 20:49
unimatch.h
5.93
KB
-rw-r--r--
2020-03-20 20:49
unirepl.h
3.21
KB
-rw-r--r--
2020-03-20 20:49
uniset.h
63.07
KB
-rw-r--r--
2020-03-20 20:49
unistr.h
164.33
KB
-rw-r--r--
2020-03-20 20:49
unorm.h
22.89
KB
-rw-r--r--
2020-03-20 20:49
unorm2.h
21.91
KB
-rw-r--r--
2020-03-20 20:49
unum.h
39.21
KB
-rw-r--r--
2020-03-20 20:49
uobject.h
12.21
KB
-rw-r--r--
2020-03-20 20:49
upluralrules.h
4.47
KB
-rw-r--r--
2020-03-20 20:49
uregex.h
71.47
KB
-rw-r--r--
2020-03-20 20:49
urename.h
120.88
KB
-rw-r--r--
2020-03-20 20:49
urep.h
5.27
KB
-rw-r--r--
2020-03-20 20:49
ures.h
35.92
KB
-rw-r--r--
2020-03-20 20:49
uscript.h
20.46
KB
-rw-r--r--
2020-03-20 20:49
usearch.h
36.09
KB
-rw-r--r--
2020-03-20 20:49
uset.h
39.45
KB
-rw-r--r--
2020-03-20 20:49
usetiter.h
9.38
KB
-rw-r--r--
2020-03-20 20:49
ushape.h
17.89
KB
-rw-r--r--
2020-03-20 20:49
uspoof.h
38.91
KB
-rw-r--r--
2020-03-20 20:49
usprep.h
8.02
KB
-rw-r--r--
2020-03-20 20:49
ustdio.h
37.05
KB
-rw-r--r--
2020-03-20 20:49
ustream.h
1.6
KB
-rw-r--r--
2020-03-20 20:49
ustring.h
73.01
KB
-rw-r--r--
2020-03-20 20:49
ustringtrie.h
3.04
KB
-rw-r--r--
2020-03-20 20:49
utext.h
57.97
KB
-rw-r--r--
2020-03-20 20:49
utf.h
7.64
KB
-rw-r--r--
2020-03-20 20:49
utf16.h
18.24
KB
-rw-r--r--
2020-03-20 20:49
utf32.h
653
B
-rw-r--r--
2020-03-20 20:49
utf8.h
23.02
KB
-rw-r--r--
2020-03-20 20:49
utf_old.h
42.5
KB
-rw-r--r--
2020-03-20 20:49
utmscale.h
13.37
KB
-rw-r--r--
2020-03-20 20:49
utrace.h
13.09
KB
-rw-r--r--
2020-03-20 20:49
utrans.h
23.08
KB
-rw-r--r--
2020-03-20 20:49
utypes.h
30.72
KB
-rw-r--r--
2020-03-20 20:49
uvernum.h
5.53
KB
-rw-r--r--
2020-03-20 20:49
uversion.h
6.29
KB
-rw-r--r--
2020-03-20 20:49
vtzone.h
20.09
KB
-rw-r--r--
2020-03-20 20:49
Save
Rename
// Copyright (C) 2009-2012, International Business Machines // Corporation and others. All Rights Reserved. // // Copyright 2001 and onwards Google Inc. // Author: Sanjay Ghemawat // This code is a contribution of Google code, and the style used here is // a compromise between the original Google code and the ICU coding guidelines. // For example, data types are ICU-ified (size_t,int->int32_t), // and API comments doxygen-ified, but function names and behavior are // as in the original, if possible. // Assertion-style error handling, not available in ICU, was changed to // parameter "pinning" similar to UnicodeString. // // In addition, this is only a partial port of the original Google code, // limited to what was needed so far. The (nearly) complete original code // is in the ICU svn repository at icuhtml/trunk/design/strings/contrib // (see ICU ticket 6765, r25517). #ifndef __STRINGPIECE_H__ #define __STRINGPIECE_H__ /** * \file * \brief C++ API: StringPiece: Read-only byte string wrapper class. */ #include "unicode/utypes.h" #include "unicode/uobject.h" #include "unicode/std_string.h" // Arghh! I wish C++ literals were "string". U_NAMESPACE_BEGIN /** * A string-like object that points to a sized piece of memory. * * We provide non-explicit singleton constructors so users can pass * in a "const char*" or a "string" wherever a "StringPiece" is * expected. * * Functions or methods may use const StringPiece& parameters to accept either * a "const char*" or a "string" value that will be implicitly converted to * a StringPiece. * * Systematic usage of StringPiece is encouraged as it will reduce unnecessary * conversions from "const char*" to "string" and back again. * * @stable ICU 4.2 */ class U_COMMON_API StringPiece : public UMemory { private: const char* ptr_; int32_t length_; public: /** * Default constructor, creates an empty StringPiece. * @stable ICU 4.2 */ StringPiece() : ptr_(NULL), length_(0) { } /** * Constructs from a NUL-terminated const char * pointer. * @param str a NUL-terminated const char * pointer * @stable ICU 4.2 */ StringPiece(const char* str); #if U_HAVE_STD_STRING /** * Constructs from a std::string. * @stable ICU 4.2 */ StringPiece(const std::string& str) : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { } #endif /** * Constructs from a const char * pointer and a specified length. * @param offset a const char * pointer (need not be terminated) * @param len the length of the string; must be non-negative * @stable ICU 4.2 */ StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { } /** * Substring of another StringPiece. * @param x the other StringPiece * @param pos start position in x; must be non-negative and <= x.length(). * @stable ICU 4.2 */ StringPiece(const StringPiece& x, int32_t pos); /** * Substring of another StringPiece. * @param x the other StringPiece * @param pos start position in x; must be non-negative and <= x.length(). * @param len length of the substring; * must be non-negative and will be pinned to at most x.length() - pos. * @stable ICU 4.2 */ StringPiece(const StringPiece& x, int32_t pos, int32_t len); /** * Returns the string pointer. May be NULL if it is empty. * * data() may return a pointer to a buffer with embedded NULs, and the * returned buffer may or may not be null terminated. Therefore it is * typically a mistake to pass data() to a routine that expects a NUL * terminated string. * @return the string pointer * @stable ICU 4.2 */ const char* data() const { return ptr_; } /** * Returns the string length. Same as length(). * @return the string length * @stable ICU 4.2 */ int32_t size() const { return length_; } /** * Returns the string length. Same as size(). * @return the string length * @stable ICU 4.2 */ int32_t length() const { return length_; } /** * Returns whether the string is empty. * @return TRUE if the string is empty * @stable ICU 4.2 */ UBool empty() const { return length_ == 0; } /** * Sets to an empty string. * @stable ICU 4.2 */ void clear() { ptr_ = NULL; length_ = 0; } /** * Reset the stringpiece to refer to new data. * @param xdata pointer the new string data. Need not be nul terminated. * @param len the length of the new data * @stable ICU 4.8 */ void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; } /** * Reset the stringpiece to refer to new data. * @param str a pointer to a NUL-terminated string. * @stable ICU 4.8 */ void set(const char* str); /** * Removes the first n string units. * @param n prefix length, must be non-negative and <=length() * @stable ICU 4.2 */ void remove_prefix(int32_t n) { if (n >= 0) { if (n > length_) { n = length_; } ptr_ += n; length_ -= n; } } /** * Removes the last n string units. * @param n suffix length, must be non-negative and <=length() * @stable ICU 4.2 */ void remove_suffix(int32_t n) { if (n >= 0) { if (n <= length_) { length_ -= n; } else { length_ = 0; } } } /** * Maximum integer, used as a default value for substring methods. * @stable ICU 4.2 */ static const int32_t npos = 0x7fffffff; /** * Returns a substring of this StringPiece. * @param pos start position; must be non-negative and <= length(). * @param len length of the substring; * must be non-negative and will be pinned to at most length() - pos. * @return the substring StringPiece * @stable ICU 4.2 */ StringPiece substr(int32_t pos, int32_t len = npos) const { return StringPiece(*this, pos, len); } }; /** * Global operator == for StringPiece * @param x The first StringPiece to compare. * @param y The second StringPiece to compare. * @return TRUE if the string data is equal * @stable ICU 4.8 */ U_EXPORT UBool U_EXPORT2 operator==(const StringPiece& x, const StringPiece& y); /** * Global operator != for StringPiece * @param x The first StringPiece to compare. * @param y The second StringPiece to compare. * @return TRUE if the string data is not equal * @stable ICU 4.8 */ inline UBool operator!=(const StringPiece& x, const StringPiece& y) { return !(x == y); } U_NAMESPACE_END #endif // __STRINGPIECE_H__