#include <UString.h>
Inherits RefCounted.
Public Member Functions | |
| UString () | |
| UString (UInt capacity) | |
| UString (const Char *s) | |
| UString (const WChar *ws) | |
| UString (const UString &s) | |
| virtual | ~UString () |
| UInt | Length (void) const |
| Get the length of the string. | |
| void | Copy (const Char *s) |
| Copy string. | |
| void | Copy (const WChar *ws) |
| void | Copy (const UString &s) |
| void | Concat (const Char *s) |
| Concatenate string. | |
| void | Concat (const WChar *ws) |
| void | Concat (const UString &s) |
| Int | Compare (const Char *s) const |
| Compare strings. | |
| Int | Compare (const WChar *s) const |
| Int | Compare (const UString &s) const |
| Int | CompareNoCase (const Char *s) const |
| Compare strings not case-sensitive. | |
| Int | CompareNoCase (const WChar *ws) const |
| Int | CompareNoCase (const UString &s) const |
| Int | Find (Char c) const |
| Find the first occurance of character. | |
| Int | Find (WChar wc) const |
| Int | FindLast (Char c) const |
| Find the last occurance of a character. | |
| Int | FindLast (WChar c) const |
| UString | SubString (const Char *s) |
| Find a substring. | |
| UString | SubString (const WChar *ws) |
| UString | SubString (const UString &s) |
| UString | Left (UInt count) |
| Extract left part of the string. | |
| UString | Middle (UInt first, UInt count) |
| Extract middle part of the string. | |
| UString | Right (UInt count) |
| Extract right part of the string. | |
| void | ToUpper (void) |
| Convert string to uppercase. | |
| void | ToLower (void) |
| Convert string to lowercase. | |
| void | Reverse (void) |
| Reverse characters of string. | |
| bool | Trim (const Char *trimChars) |
| Remove leading and trailing characters from string. | |
| bool | Trim (const WChar *trimChars) |
| bool | Trim (const UString &trimChars) |
| bool | TrimLeft (const Char *trimChars) |
| Remove characters from left side of string. | |
| bool | TrimLeft (const WChar *trimChars) |
| bool | TrimLeft (const UString &trimChars) |
| bool | TrimRight (const Char *trimChars) |
| Remove characters from right side of string. | |
| bool | TrimRight (const WChar *trimChars) |
| bool | TrimRight (const UString &trimChars) |
| void | ConvertToANSI (Char *buffer, UInt bufferLength) const |
| UInt | Size (void) const |
| Get the size (in bytes) of the string. | |
| UInt | Capacity (void) const |
| Get the maximum number of characters this string can hold. | |
| bool | Resize (UInt size) |
| Resize the string. | |
| const WChar * | Get (void) const |
| UString | operator= (const Char *s) |
| Assignment operator. | |
| UString | operator= (const WChar *ws) |
| UString | operator= (const UString &s) |
| UString | operator+ (const Char *s) |
| Addition operator (concatenate) | |
| UString | operator+ (const WChar *ws) |
| UString | operator+ (const UString &s) |
| UString | operator+= (const Char *s) |
| UString | operator+= (const WChar *ws) |
| UString | operator+= (const UString &s) |
| bool | operator== (const Char *s) |
| Equal operator (case sensitive compare) | |
| bool | operator== (const WChar *ws) |
| bool | operator== (const UString &s) |
| bool | operator!= (const Char *s) |
| bool | operator!= (const WChar *ws) |
| bool | operator!= (const UString &s) |
| bool | operator< (const Char *s) |
| Less than operator (case sensitive compare) | |
| bool | operator< (const WChar *ws) |
| bool | operator< (const UString &s) |
| bool | operator<= (const Char *s) |
| bool | operator<= (const WChar *ws) |
| bool | operator<= (const UString &s) |
| bool | operator> (const Char *s) |
| Greater than operator (case sensitive compare) | |
| bool | operator> (const WChar *ws) |
| bool | operator> (const UString &s) |
| bool | operator>= (const Char *s) |
| bool | operator>= (const WChar *ws) |
| bool | operator>= (const UString &s) |
| operator const WChar * () const | |
Additional Inherited Members | |
Protected Member Functions inherited from RefCounted | |
| RefCounted () | |
| RefCounted (const RefCounted &) | |
| const RefCounted & | operator= (const RefCounted &) |
| virtual | ~RefCounted () |
| virtual bool | operator== (const RefCounted &) const |
| bool | operator!= (const RefCounted &) const |
| void | AddReference (void) |
| virtual void | Release (void) |
| int | ReferenceCount (void) const |
| UString::UString | ( | ) |
Definition at line 148 of file UString.cpp.
| UString::UString | ( | UInt | capacity | ) |
Definition at line 171 of file UString.cpp.
| UString::UString | ( | const Char * | s | ) |
Definition at line 195 of file UString.cpp.
| UString::UString | ( | const WChar * | ws | ) |
Definition at line 219 of file UString.cpp.
| UString::UString | ( | const UString & | s | ) |
Definition at line 243 of file UString.cpp.
|
virtual |
Definition at line 267 of file UString.cpp.
| UInt UString::Capacity | ( | void | ) | const |
Get the maximum number of characters this string can hold.
Definition at line 1247 of file UString.cpp.
Compare strings.
Definition at line 520 of file UString.cpp.
Definition at line 611 of file UString.cpp.
Definition at line 587 of file UString.cpp.
Compare strings not case-sensitive.
Definition at line 636 of file UString.cpp.
Definition at line 733 of file UString.cpp.
Definition at line 708 of file UString.cpp.
| void UString::Concat | ( | const Char * | s | ) |
Concatenate string.
Definition at line 422 of file UString.cpp.
| void UString::Concat | ( | const UString & | s | ) |
Definition at line 496 of file UString.cpp.
| void UString::Concat | ( | const WChar * | ws | ) |
Definition at line 466 of file UString.cpp.
Definition at line 1198 of file UString.cpp.
| void UString::Copy | ( | const Char * | s | ) |
Copy string.
Definition at line 319 of file UString.cpp.
| void UString::Copy | ( | const UString & | s | ) |
Definition at line 400 of file UString.cpp.
| void UString::Copy | ( | const WChar * | ws | ) |
Definition at line 364 of file UString.cpp.
Find the first occurance of character.
Definition at line 755 of file UString.cpp.
Definition at line 777 of file UString.cpp.
Find the last occurance of a character.
Definition at line 807 of file UString.cpp.
Definition at line 829 of file UString.cpp.
Extract left part of the string.
Definition at line 899 of file UString.cpp.
| UInt UString::Length | ( | void | ) | const |
Get the length of the string.
Definition at line 292 of file UString.cpp.
Extract middle part of the string.
Definition at line 930 of file UString.cpp.
Resize the string.
Definition at line 1269 of file UString.cpp.
| void UString::Reverse | ( | void | ) |
Reverse characters of string.
Definition at line 1044 of file UString.cpp.
Extract right part of the string.
Definition at line 961 of file UString.cpp.
| UInt UString::Size | ( | void | ) | const |
Get the size (in bytes) of the string.
Definition at line 1220 of file UString.cpp.
Find a substring.
Definition at line 860 of file UString.cpp.
Definition at line 876 of file UString.cpp.
Definition at line 868 of file UString.cpp.
| void UString::ToLower | ( | void | ) |
Convert string to lowercase.
Definition at line 1019 of file UString.cpp.
| void UString::ToUpper | ( | void | ) |
Convert string to uppercase.
Definition at line 994 of file UString.cpp.
Remove leading and trailing characters from string.
Definition at line 1069 of file UString.cpp.
Definition at line 1085 of file UString.cpp.
Definition at line 1077 of file UString.cpp.
Remove characters from left side of string.
Definition at line 1109 of file UString.cpp.
Definition at line 1131 of file UString.cpp.
Definition at line 1120 of file UString.cpp.
Remove characters from right side of string.
Definition at line 1153 of file UString.cpp.
Definition at line 1175 of file UString.cpp.
Definition at line 1164 of file UString.cpp.