- constructors:
SysString(const unichar* data);
SysString(const byte* data, SysChar::ENCODE encoding = SysChar::DEF_ENCODE);
- assign methods:
boolean assign(const unichar* data);
boolean assign(const byte* data, long max_size = BIG_BUFFER_LENGTH, SysChar::ENCODE encoding = SysChar::DEF_ENCODE);
- numeric conversion assignment methods:
boolean assign(const void* arg);
boolean assign(boolean arg);
boolean assign(const byte arg);
boolean assign(unichar arg);
boolean assign(const ushort arg);
boolean assign(const ulong arg);
boolean assign(const ullong arg);
boolean assign(const short arg);
boolean assign(const long arg);
boolean assign(const llong arg);
boolean assign(const float arg);
boolean assign(const double arg);
template <class TIntegral> boolean assign(const SysComplex<TIntegral>& arg);
- define versions of the assign methods that take format strings:
boolean assign(const SysString& data, const unichar* fmt);
boolean assign(const unichar* data, const unichar* fmt);
boolean assign(const byte* data, const unichar* fmt, long max_size = BIG_BUFFER_LENGTH, SysChar::ENCODE encoding = SysChar::DEF_ENCODE);
- numeric conversion assignment methods:
boolean assign(const void* arg, unichar* fmt);
boolean assign(boolean arg, const unichar* fmt);
boolean assign(const byte arg, unichar* fmt);
boolean assign(unichar arg, const unichar* fmt);
boolean assign(const ushort arg, unichar* fmt);
boolean assign(const ulong arg, unichar* fmt);
boolean assign(const ullong arg, unichar* fmt);
boolean assign(const short arg, unichar* fmt);
boolean assign(const long arg, unichar* fmt);
boolean assign(const llong arg, unichar* fmt);
boolean assign(const float arg, unichar* fmt);
boolean assign(const double arg, unichar* fmt);
template <class TIntegral> boolean assign(const SysComplex<TIntegral>& arg, const unichar* fmt);
- enum assignment methods:
boolean assign(Integral::DEBUG arg);
boolean assign(Integral::COMPARE arg);
boolean assign(File::MODE arg);
boolean assign(File::BMODE arg);
boolean assign(File::TYPE arg);
boolean assign(SysChar::ENCODE arg);
boolean assign(MemoryManager::MODE arg);
- special assignment methods:
boolean swap(SysString& arg);
- relational and logical methods:
Integral::COMPARE compare(const SysString& str) const;
Integral::COMPARE compare(const SysString& str1, const SysString str2) const;
Integral::COMPARE compare(const unichar* str) const;
Integral::COMPARE comparePartial(const SysString& arg, long arg_offset, long num_elements, long offset) const;
Integral::COMPARE comparePartial(const unichar* arg, long arg_offset, long num_elements, long offset) const;
boolean eq(const unichar* value, boolean case_sensitive = true) const;
boolean ne(const SysString& vector, boolean case_sensitive = true) const;
boolean ne(const unichar* value, boolean case_sensitive = true) const;
boolean gt(const SysString& vector) const;
boolean gt(const unichar* value) const;
boolean lt(const SysString& vector) const;
boolean lt(const unichar* value) const;
boolean ge(const SysString& vector) const;
boolean ge(const unichar* value) const;
boolean le(const SysString& vector) const;
boolean le(const unichar* value) const;
long numEqual(unichar test_value) const;
long numNotEqual(unichar test_value) const;
- indexing methods:
unichar& operator()(long index);
const unichar& operator()(long index) const;
- automatic type conversion methods:
operator byte*() const;
operator unichar*() const;
- numeric conversion methods:
boolean get(void*& arg) const;
boolean get(boolean& arg) const;
boolean get(byte& arg) const;
boolean get(unichar& arg) const;
boolean get(ushort& arg) const;
boolean get(ulong& arg) const;
boolean get(ullong& arg) const;
boolean get(short& arg) const;
boolean get(long& arg) const;
boolean get(llong& arg) const;
boolean get(float& arg) const;
boolean get(double& arg) const;
template <class TIntegral> boolean get(SysComplex<TIntegral>& arg) const;
boolean get(SysChar& arg) const;
- size-related methods:
long length() const;
long memSize() const;
boolean setCapacity(long cap);
- array-oriented methods:
long getBuffer(unichar* buffer, long max) const;
long getBuffer(byte* buffer, long max, SysChar::ENCODE encoding = SysChar::DEF_ENCODE) const;
boolean substr(SysString& str, long offset, long num_elements = Integral::NO_POS) const;
- insert/replace a substring into the string methods:
boolean insert(const SysString& str, long index);
boolean insert(const unichar* str, long index);
boolean replace(const SysString& str, long index);
boolean replace(const unichar* str, long index);
boolean replace(const SysString& pattern, const SysString& new_stuff);
boolean replaceAll(const SysString& pattern, const SysString& new_stuff);
boolean deleteRange(long offset, long num_elements);
- append to the end of the string methods:
boolean concat(const SysString& str);
boolean concat(const SysString& str1, const SysString& str2);
boolean concat(const unichar* buf);
boolean concat(unichar character);
- numeric concatenation methods:
boolean concat(const void* arg);
boolean concat(boolean arg);
boolean concat(const byte arg);
boolean concat(const ushort arg);
boolean concat(const ulong arg);
boolean concat(const ullong arg);
boolean concat(const short arg);
boolean concat(const long arg);
boolean concat(const llong arg);
boolean concat(const float arg);
boolean concat(const double arg);
template <class TIntegral> boolean concat(const SysComplex<TIntegral>& arg);
- append to the end of the string methods with print format:
boolean concat(const SysString& str, const unichar* fmt);
boolean concat(const unichar* buf, const unichar* fmt);
boolean concat(unichar character, const unichar* fmt);
- numeric concatenation methods with print format:
boolean concat(const void* arg, const unichar* fmt);
boolean concat(boolean arg, const unichar* fmt);
boolean concat(const byte arg, const unichar* fmt);
boolean concat(const ushort arg, const unichar* fmt);
boolean concat(const ulong arg, const unichar* fmt);
boolean concat(const ullong arg, const unichar* fmt);
boolean concat(const short arg, const unichar* fmt);
boolean concat(const long arg, const unichar* fmt);
boolean concat(const llong arg, const unichar* fmt);
boolean concat(const float arg, const unichar* fmt);
boolean concat(const double arg, const unichar* fmt);
template <class TIntegral> boolean concat(const SysComplex<TIntegral>& arg, const unichar* fmt = DEF_FMT_DOUBLE);
- trim away characters from string methods:
boolean trim();
boolean trim(const SysString& chars);
boolean trim(const unichar* chars);
boolean trimLeft();
boolean trimLeft(const SysString& chars);
boolean trimLeft(const unichar* chars);
boolean trimRight();
boolean trimRight(const SysString& chars);
boolean trimRight(const unichar* chars);
- string case conversion methods:
boolean toUpper();
boolean toLower();
boolean toMixed();
boolean toMixed(const SysString& sep_chrs);
- string search methods:
long firstStr(const unichar* str, long start = Integral::NO_POS) const;
long firstStr(const SysString& str, long start = Integral::NO_POS) const;
long lastStr(const unichar* str, long end = Integral::NO_POS) const;
long lastStr(const SysString& str, long end = Integral::NO_POS) const;
long firstChr(const unichar* chrs, long start = Integral::NO_POS) const;
long firstChr(const SysString& chrs, long start = Integral::NO_POS) const;
long firstChr(unichar chr, long start = Integral::NO_POS) const;
long lastChr(const unichar* chrs, long end = Integral::NO_POS) const;
long lastChr(const SysString& chrs, long end = Integral::NO_POS) const;
long lastChr(unichar chr, long end = Integral::NO_POS) const;
long firstNotChr(const SysString& chrs, long start = Integral::NO_POS) const;
long firstNotChr(unichar chr, long start = Integral::NO_POS) const;
long lastNotChr(const SysString& chrs, long end = Integral::NO_POS) const;
long lastNotChr(unichar chr, long end = Integral::NO_POS) const;
long firstAlnum(long start = Integral::NO_POS) const;
long firstAlpha(long start = Integral::NO_POS) const;
long firstDigit(long start = Integral::NO_POS) const;
long firstLower(long start = Integral::NO_POS) const;
long firstPrint(long start = Integral::NO_POS) const;
long firstPunct(long start = Integral::NO_POS) const;
long firstSpace(long start = Integral::NO_POS) const;
long firstUpper(long start = Integral::NO_POS) const;
long lastAlnum(long end = Integral::NO_POS) const;
long lastAlpha(long end = Integral::NO_POS) const;
long lastDigit(long end = Integral::NO_POS) const;
long lastLower(long end = Integral::NO_POS) const;
long lastPrint(long end = Integral::NO_POS) const;
long lastPunct(long end = Integral::NO_POS) const;
long lastSpace(long end = Integral::NO_POS) const;
long lastUpper(long end = Integral::NO_POS) const;
long firstNotAlnum(long start = Integral::NO_POS) const;
long firstNotAlpha(long start = Integral::NO_POS) const;
long firstNotDigit(long start = Integral::NO_POS) const;
long firstNotLower(long start = Integral::NO_POS) const;
long firstNotPrint(long start = Integral::NO_POS) const;
long firstNotPunct(long start = Integral::NO_POS) const;
long firstNotSpace(long start = Integral::NO_POS) const;
long firstNotUpper(long start = Integral::NO_POS) const;
long lastNotAlnum(long end = Integral::NO_POS) const;
long lastNotAlpha(long end = Integral::NO_POS) const;
long lastNotDigit(long end = Integral::NO_POS) const;
long lastNotLower(long end = Integral::NO_POS) const;
long lastNotPrint(long end = Integral::NO_POS) const;
long lastNotPunct(long end = Integral::NO_POS) const;
long lastNotSpace(long end = Integral::NO_POS) const;
long lastNotUpper(long end = Integral::NO_POS) const;
- count tokens methods:
long countTokens() const;
long countTokens(unichar delimiter = SysChar::SPACEC) const;
long countTokens(const SysString& delimiters) const;
- count delimiters methods:
long countDelimiters() const;
long countDelimiters(unichar delimiter = SysChar::SPACEC) const;
long countDelimiters(const SysString& delimiters) const;
- string tokenize methods:
boolean tokenize(SysString& sub, long& pos) const;
boolean tokenize(SysString& sub, long& pos, unichar delim) const;
boolean tokenize(SysString& sub_a, long& pos, const SysString& delim) const;
boolean symbolPad(const SysString& symbols);
- debug string creation methods:
boolean debugStr(const SysString& class_name, const unichar* message_a, const unichar* variable_name, const SysString& variable_value);
boolean debugStr(const SysString& class_name, const unichar* message_a, const unichar* variable_name);
boolean debugStrPrefix(const SysString& class_name, const unichar* message_a);
- empty string creation methods:
static const SysString& getEmptyString();