DCL 4.0
|
#include <__STRING.h>
Public Types | |
enum | EscapeFlags { ESCAPE_DEFAULT , ESCAPE_EXTENDED , ESCAPE_ALL , ESCAPE_XML } |
Public Member Functions | |
~STRING_T () | |
STRING_T () | |
STRING_T (const STRING_T &_str) | |
STRING_T (CHAR_T _ch, size_t _repeat=1) | |
STRING_T (const CHAR_T *_ps, size_t _start, size_t _len) | |
STRING_T (const CHAR_T *_psz, size_t _len=(size_t) -1) | |
STRING_T (const CHAR_T *_begin, const CHAR_T *_end) | |
STRING_T (BUFFER_T *_buf) | |
STRING_T & | assign (const STRING_T &_str) |
STRING_T & | assign (CHAR_T _ch, size_t _repeat=1) |
STRING_T & | assign (const CHAR_T *_ps, size_t _start, size_t _len) |
STRING_T & | assign (const CHAR_T *_psz, size_t _len=(size_t) -1) |
STRING_T & | assign (const CHAR_T *_begin, const CHAR_T *_end) |
STRING_T & | assign (BUFFER_T *_buf) |
STRING_T & | operator= (const STRING_T &_str) |
STRING_T & | operator= (const CHAR_T *_psz) |
STRING_T & | operator= (CHAR_T _ch) |
STRING_T & | operator= (BUFFER_T *_buf) |
void | clear () |
size_t | indexOf (CHAR_T _ch, size_t _start=0) const |
size_t | indexOf (const CHAR_T *_psz, size_t _start=0) const |
size_t | indexOf (const STRING_T &_str, size_t _start=0) const |
size_t | lastIndexOf (CHAR_T _ch, size_t _start=0) const |
size_t | lastIndexOf (const STRING_T &_str, size_t _start=0) const |
size_t | lastIndexOf (const CHAR_T *_psz, size_t _start=0) const |
bool | contains (CHAR_T _ch) const |
bool | contains (const CHAR_T *_psz) const |
bool | contains (const STRING_T &_str) const |
bool | endsWith (const CHAR_T *_suffix) const |
bool | startsWith (const CHAR_T *_prefix) const |
bool | endsWith (const STRING_T &_suffix) const |
bool | startsWith (const STRING_T &_prefix) const |
int | compare (const CHAR_T *_psz, size_t _len=(size_t) -1) const |
int | compareNoCase (const CHAR_T *_psz, size_t _len=(size_t) -1) const |
STRING_T | mid (size_t _first, size_t _len=(size_t) -1) const |
STRING_T | left (size_t _len) const |
STRING_T | right (size_t _len) const |
STRING_T | substring (size_t _first) const |
STRING_T | substring (size_t _first, size_t _last) const |
STRING_T | padCenter (size_t _len, CHAR_T _ch) const |
STRING_T | padLeft (size_t _len, CHAR_T _ch) const |
STRING_T | padRight (size_t _len, CHAR_T _ch) const |
STRING_T | replace (size_t _start, size_t _len, const CHAR_T *_new, size_t _newlen=(size_t) -1) const |
STRING_T | replace (size_t _start, const STRING_T &_new) const |
STRING_T | rreplace (size_t _start, size_t _len, const CHAR_T *_new, size_t _newlen=(size_t) -1) const |
STRING_T | rreplace (size_t _start, const STRING_T &_new) const |
STRING_T | replace (CHAR_T _old, CHAR_T _new) const |
STRING_T | replace (const CHAR_T *_old, const CHAR_T *_new) const |
STRING_T | replace (const STRING_T &_old, const STRING_T &_new) const |
STRING_T | replace (const CHAR_T *_old, size_t _oldlen, const CHAR_T *_new, size_t _newlen) const |
size_t | search (const CHAR_T *_regex, bool _icase) const __DCL_THROWS1(RegexException *) |
size_t | search (const STRING_T &_regex, bool _icase) const __DCL_THROWS1(RegexException *) |
STRING_T | substring (const CHAR_T *_regex, bool _icase) const __DCL_THROWS1(RegexException *) |
STRING_T | substring (const STRING_T &_regex, bool _icase) const __DCL_THROWS1(RegexException *) |
bool | searches (const CHAR_T *_regex, bool _icase) const __DCL_THROWS1(RegexException *) |
bool | searches (const STRING_T &_regex, bool _icase) const __DCL_THROWS1(RegexException *) |
bool | matches (const CHAR_T *_regex, bool _icase) const __DCL_THROWS1(RegexException *) |
bool | matches (const STRING_T &_regex, bool _icase) const __DCL_THROWS1(RegexException *) |
STRING_T | replace_r (const CHAR_T *_regex, const CHAR_T *_replacment, bool _icase, size_t _limit=(size_t) -1) const __DCL_THROWS1(RegexException *) |
STRING_T | replace_r (const STRING_T &_regex, const STRING_T &_replacement, bool _icase, size_t _limit=(size_t) -1) const __DCL_THROWS1(RegexException *) |
ARRAY_T & | split_r (const CHAR_T *_regex, bool _icase, ARRAY_T &_results, size_t _limit=(size_t) -1) const __DCL_THROWS1(RegexException *) |
ARRAY_T & | split_r (const STRING_T &_regex, bool _icase, ARRAY_T &_results, size_t _limit=(size_t) -1) const __DCL_THROWS1(RegexException *) |
STRING_T | toUpperCase () const |
STRING_T | toLowerCase () const |
String | toString () const |
STRING_T | trim () const |
STRING_T | trimLeft () const |
STRING_T | trimRight () const |
STRING_T | trim (const CHAR_T *_chars) const |
STRING_T | trimLeft (const CHAR_T *_chars) const |
STRING_T | trimRight (const CHAR_T *_chars) const |
bool | isEmpty () const |
size_t | length () const |
const CHAR_T * | data () const |
operator const CHAR_T * () const | |
CHAR_T | operator[] (size_t _index) const |
size_t | split (const STRING_T &_delimiter, ARRAY_T &_results, size_t _limit=(size_t) -1) const |
size_t | split (CHAR_T _delimiter, ARRAY_T &_results, size_t _limit=(size_t) -1) const |
Static Public Member Functions | |
static int | compare (const CHAR_T *psz1, const CHAR_T *psz2, size_t _len=(size_t) -1) |
static int | compareNoCase (const CHAR_T *psz1, const CHAR_T *psz2, size_t _len=(size_t) -1) |
static size_t | length (const CHAR_T *_psz, size_t _max=(size_t) -1) |
static STRING_T | format (const CHAR_T *_format,...) |
static STRING_T | escape (const CHAR_T *_ps, size_t _len, EscapeFlags _flag=ESCAPE_DEFAULT) |
static STRING_T | unescape (const CHAR_T *_psz, size_t _len) |
static STRING_T | toHexString (const char *_bytes, size_t _len, size_t _max=(size_t) -1, bool _prefix=true) |
static STRING_T | toHexString (const ByteString &_bytes, size_t _max=(size_t) -1, bool _prefix=true) |
static STRING_T | tryString (const char *_bytes, size_t _len, size_t _max=(size_t) -1) |
static STRING_T | tryString (const ByteString &_bytes, size_t _max=(size_t) -1) |
static CHAR_T * | find (const CHAR_T *_begin, const CHAR_T *_end, CHAR_T _ch) |
static CHAR_T * | rfind (const CHAR_T *_begin, const CHAR_T *_end, CHAR_T _ch) |
static CHAR_T * | find (const CHAR_T *_begin, const CHAR_T *_end, const CHAR_T *_sub, size_t _sublen) |
static CHAR_T * | rfind (const CHAR_T *_begin, const CHAR_T *_end, const CHAR_T *_sub, size_t _sublen) |
static size_t | split (const CHAR_T *_begin, const CHAR_T *_end, const CHAR_T *_delimiter, size_t _delimiterlen, ARRAY_T &_results, size_t _limit=(size_t) -1) |
static size_t | split (const CHAR_T *_begin, const CHAR_T *_end, CHAR_T _delimiter, ARRAY_T &_results, size_t _limit=(size_t) -1) |
static STRING_T | join (const ARRAY_T &_array, CHAR_T _delimiter, bool _hasEmpty=false) |
static STRING_T | valueOf (bool _b) |
static STRING_T | valueOf (char _n) |
static STRING_T | valueOf (unsigned char _n) |
static STRING_T | valueOf (short _n) |
static STRING_T | valueOf (unsigned short _n) |
static STRING_T | valueOf (int _n) |
static STRING_T | valueOf (unsigned int _n) |
static STRING_T | valueOf (long _n) |
static STRING_T | valueOf (unsigned long _n) |
static STRING_T | valueOf (long long _n) |
static STRING_T | valueOf (unsigned long long _n) |
static STRING_T | valueOf (float _n) |
static STRING_T | valueOf (double _n) |
static STRING_T | valueOf (long double _n) |
Protected Member Functions | |
BUFFER_T * | __buf () const |
void | assignAlloc (size_t _len) |
void | assign (const CHAR_T *_ps1, size_t _len1, const CHAR_T *_ps2, size_t _len2) |
Protected Attributes | |
CHAR_T * | __psz |
Friends | |
class | STRING_BUILDER_T |
DCLCAPI friend STRING_T | operator+ (const STRING_T &_str1, const STRING_T &_str2) |
DCLCAPI friend STRING_T | operator+ (const STRING_T &_str, CHAR_T _ch) |
DCLCAPI friend STRING_T | operator+ (CHAR_T _ch, const STRING_T &_str) |
DCLCAPI friend STRING_T | operator+ (const STRING_T &_str, const CHAR_T *_psz) |
DCLCAPI friend STRING_T | operator+ (const CHAR_T *_psz, const STRING_T &_str) |
Definition at line 54 of file __STRING.h.
enum STRING_T::EscapeFlags |
Enumerator | |
---|---|
ESCAPE_DEFAULT | |
ESCAPE_EXTENDED | |
ESCAPE_ALL | |
ESCAPE_XML |
Definition at line 247 of file __STRING.h.
STRING_T::~STRING_T | ( | ) |
Definition at line 315 of file __STRING.cpp.
STRING_T::STRING_T | ( | ) |
Definition at line 323 of file __STRING.cpp.
STRING_T::STRING_T | ( | const STRING_T & | _str | ) |
Definition at line 337 of file __STRING.cpp.
STRING_T::STRING_T | ( | CHAR_T | _ch, |
size_t | _repeat = 1 ) |
Definition at line 343 of file __STRING.cpp.
STRING_T::STRING_T | ( | const CHAR_T * | _ps, |
size_t | _start, | ||
size_t | _len ) |
Definition at line 349 of file __STRING.cpp.
STRING_T::STRING_T | ( | const CHAR_T * | _psz, |
size_t | _len = (size_t)-1 ) |
Definition at line 355 of file __STRING.cpp.
Definition at line 361 of file __STRING.cpp.
STRING_T::STRING_T | ( | BUFFER_T * | _buf | ) |
Definition at line 328 of file __STRING.cpp.
|
inlineprotected |
Definition at line 59 of file __STRING.h.
Definition at line 367 of file __STRING.cpp.
Definition at line 398 of file __STRING.cpp.
Definition at line 441 of file __STRING.cpp.
Definition at line 417 of file __STRING.cpp.
|
protected |
Definition at line 447 of file __STRING.cpp.
Definition at line 434 of file __STRING.cpp.
Definition at line 380 of file __STRING.cpp.
|
protected |
Definition at line 296 of file __STRING.cpp.
void STRING_T::clear | ( | ) |
|
inline |
Definition at line 387 of file __STRING.h.
Definition at line 574 of file __STRING.cpp.
|
inline |
Definition at line 392 of file __STRING.h.
|
static |
Definition at line 585 of file __STRING.cpp.
|
inline |
Definition at line 561 of file __STRING.h.
|
inline |
Definition at line 566 of file __STRING.h.
|
inline |
Definition at line 571 of file __STRING.h.
|
inline |
Definition at line 641 of file __STRING.h.
|
inline |
Definition at line 576 of file __STRING.h.
|
inline |
Definition at line 588 of file __STRING.h.
|
static |
Definition at line 1331 of file __STRING.cpp.
Definition at line 1630 of file __STRING.cpp.
|
static |
Definition at line 1661 of file __STRING.cpp.
Definition at line 1290 of file __STRING.cpp.
size_t STRING_T::indexOf | ( | CHAR_T | _ch, |
size_t | _start = 0 ) const |
Definition at line 512 of file __STRING.cpp.
size_t STRING_T::indexOf | ( | const CHAR_T * | _psz, |
size_t | _start = 0 ) const |
Definition at line 522 of file __STRING.cpp.
size_t STRING_T::indexOf | ( | const STRING_T & | _str, |
size_t | _start = 0 ) const |
Definition at line 533 of file __STRING.cpp.
|
inline |
Definition at line 631 of file __STRING.h.
|
static |
Definition at line 1793 of file __STRING.cpp.
size_t STRING_T::lastIndexOf | ( | CHAR_T | _ch, |
size_t | _start = 0 ) const |
Definition at line 543 of file __STRING.cpp.
size_t STRING_T::lastIndexOf | ( | const CHAR_T * | _psz, |
size_t | _start = 0 ) const |
Definition at line 553 of file __STRING.cpp.
size_t STRING_T::lastIndexOf | ( | const STRING_T & | _str, |
size_t | _start = 0 ) const |
Definition at line 564 of file __STRING.cpp.
STRING_T STRING_T::left | ( | size_t | _len | ) | const |
Definition at line 611 of file __STRING.cpp.
|
inline |
Definition at line 636 of file __STRING.h.
|
static |
Definition at line 1277 of file __STRING.cpp.
bool STRING_T::matches | ( | const CHAR_T * | _regex, |
bool | _icase ) const |
Definition at line 900 of file __STRING.cpp.
bool STRING_T::matches | ( | const STRING_T & | _regex, |
bool | _icase ) const |
Definition at line 913 of file __STRING.cpp.
STRING_T STRING_T::mid | ( | size_t | _first, |
size_t | _len = (size_t)-1 ) const |
Definition at line 596 of file __STRING.cpp.
|
inline |
Definition at line 646 of file __STRING.h.
Definition at line 382 of file __STRING.h.
Definition at line 377 of file __STRING.h.
Definition at line 372 of file __STRING.h.
Definition at line 367 of file __STRING.h.
CHAR_T STRING_T::operator[] | ( | size_t | _index | ) | const |
Definition at line 1268 of file __STRING.cpp.
Definition at line 623 of file __STRING.cpp.
Definition at line 656 of file __STRING.cpp.
Definition at line 685 of file __STRING.cpp.
Definition at line 748 of file __STRING.cpp.
Definition at line 620 of file __STRING.h.
STRING_T STRING_T::replace | ( | const CHAR_T * | _old, |
size_t | _oldlen, | ||
const CHAR_T * | _new, | ||
size_t | _newlen ) const |
Definition at line 773 of file __STRING.cpp.
Definition at line 626 of file __STRING.h.
Definition at line 610 of file __STRING.h.
STRING_T STRING_T::replace | ( | size_t | _start, |
size_t | _len, | ||
const CHAR_T * | _new, | ||
size_t | _newlen = (size_t)-1 ) const |
Definition at line 713 of file __STRING.cpp.
STRING_T STRING_T::replace_r | ( | const CHAR_T * | _regex, |
const CHAR_T * | _replacment, | ||
bool | _icase, | ||
size_t | _limit = (size_t)-1 ) const |
Definition at line 925 of file __STRING.cpp.
STRING_T STRING_T::replace_r | ( | const STRING_T & | _regex, |
const STRING_T & | _replacement, | ||
bool | _icase, | ||
size_t | _limit = (size_t)-1 ) const |
Definition at line 943 of file __STRING.cpp.
Definition at line 1646 of file __STRING.cpp.
|
static |
Definition at line 1699 of file __STRING.cpp.
STRING_T STRING_T::right | ( | size_t | _len | ) | const |
Definition at line 615 of file __STRING.h.
STRING_T STRING_T::rreplace | ( | size_t | _start, |
size_t | _len, | ||
const CHAR_T * | _new, | ||
size_t | _newlen = (size_t)-1 ) const |
Definition at line 740 of file __STRING.cpp.
size_t STRING_T::search | ( | const CHAR_T * | _regex, |
bool | _icase ) const |
Definition at line 825 of file __STRING.cpp.
size_t STRING_T::search | ( | const STRING_T & | _regex, |
bool | _icase ) const |
Definition at line 838 of file __STRING.cpp.
bool STRING_T::searches | ( | const CHAR_T * | _regex, |
bool | _icase ) const |
Definition at line 875 of file __STRING.cpp.
bool STRING_T::searches | ( | const STRING_T & | _regex, |
bool | _icase ) const |
Definition at line 888 of file __STRING.cpp.
|
inline |
Definition at line 682 of file __STRING.h.
|
static |
Definition at line 1765 of file __STRING.cpp.
|
static |
Definition at line 1736 of file __STRING.cpp.
|
inline |
Definition at line 668 of file __STRING.h.
ARRAY_T & STRING_T::split_r | ( | const CHAR_T * | _regex, |
bool | _icase, | ||
ARRAY_T & | _results, | ||
size_t | _limit = (size_t)-1 ) const |
Definition at line 959 of file __STRING.cpp.
ARRAY_T & STRING_T::split_r | ( | const STRING_T & | _regex, |
bool | _icase, | ||
ARRAY_T & | _results, | ||
size_t | _limit = (size_t)-1 ) const |
Definition at line 976 of file __STRING.cpp.
|
inline |
Definition at line 584 of file __STRING.h.
|
inline |
Definition at line 595 of file __STRING.h.
Definition at line 850 of file __STRING.cpp.
Definition at line 863 of file __STRING.cpp.
|
inline |
Definition at line 600 of file __STRING.h.
|
inline |
Definition at line 605 of file __STRING.h.
|
inlinestatic |
Definition at line 651 of file __STRING.h.
|
static |
Definition at line 1526 of file __STRING.cpp.
STRING_T STRING_T::toLowerCase | ( | ) | const |
Definition at line 1011 of file __STRING.cpp.
String STRING_T::toString | ( | ) | const |
Definition at line 1076 of file __STRING.cpp.
STRING_T STRING_T::toUpperCase | ( | ) | const |
Definition at line 992 of file __STRING.cpp.
STRING_T STRING_T::trim | ( | ) | const |
Definition at line 1082 of file __STRING.cpp.
Definition at line 1174 of file __STRING.cpp.
STRING_T STRING_T::trimLeft | ( | ) | const |
Definition at line 1118 of file __STRING.cpp.
Definition at line 1211 of file __STRING.cpp.
STRING_T STRING_T::trimRight | ( | ) | const |
Definition at line 1146 of file __STRING.cpp.
Definition at line 1240 of file __STRING.cpp.
|
inlinestatic |
Definition at line 660 of file __STRING.h.
|
static |
Definition at line 1577 of file __STRING.cpp.
Definition at line 1436 of file __STRING.cpp.
|
static |
Definition at line 1823 of file __STRING.cpp.
|
static |
Definition at line 1828 of file __STRING.cpp.
|
static |
Definition at line 1943 of file __STRING.cpp.
|
static |
Definition at line 1934 of file __STRING.cpp.
|
static |
Definition at line 1864 of file __STRING.cpp.
|
static |
Definition at line 1882 of file __STRING.cpp.
|
static |
Definition at line 1952 of file __STRING.cpp.
|
static |
Definition at line 1916 of file __STRING.cpp.
|
static |
Definition at line 1846 of file __STRING.cpp.
|
static |
Definition at line 1837 of file __STRING.cpp.
|
static |
Definition at line 1873 of file __STRING.cpp.
|
static |
Definition at line 1899 of file __STRING.cpp.
|
static |
Definition at line 1925 of file __STRING.cpp.
|
static |
Definition at line 1855 of file __STRING.cpp.
Definition at line 503 of file __STRING.cpp.
Definition at line 495 of file __STRING.cpp.
|
friend |
Definition at line 56 of file __STRING.h.
|
protected |
Definition at line 58 of file __STRING.h.