|
| String () |
|
| UString () |
| Construct an empty string. More...
|
|
| UString (const UString &str) |
| Copy constructor. More...
|
|
| UString (const std::string &str) |
| Construct UString from an UTF-8 string. More...
|
|
| UString (const char *str) |
| Construct UString from an UTF-8 string. More...
|
|
| UString (const char *str, size_t n) |
| Construct UString from the first n bytes of an UTF-8 string. More...
|
|
| UString (uint32 c, size_t n=1) |
| Construct UString by creating n copies of Unicode codepoint c. More...
|
|
| UString (iterator sBegin, iterator sEnd) |
| Construct UString by copying the characters between [sBegin,sEnd). More...
|
|
| ~UString () |
|
UString & | operator= (const UString &str) |
|
UString & | operator= (const std::string &str) |
|
UString & | operator= (const char *str) |
|
bool | operator== (const UString &str) const |
|
bool | operator!= (const UString &str) const |
|
bool | operator< (const UString &str) const |
|
bool | operator> (const UString &str) const |
|
UString | operator+ (const UString &str) const |
|
UString | operator+ (const std::string &str) const |
|
UString | operator+ (const char *str) const |
|
UString | operator+ (uint32 c) const |
|
UString & | operator+= (const UString &str) |
|
UString & | operator+= (const std::string &str) |
|
UString & | operator+= (const char *str) |
|
UString & | operator+= (uint32 c) |
|
int | strcmp (const UString &str) const |
|
int | stricmp (const UString &str) const |
|
bool | equals (const UString &str) const |
|
bool | equalsIgnoreCase (const UString &str) const |
|
bool | less (const UString &str) const |
|
bool | lessIgnoreCase (const UString &str) const |
|
void | swap (UString &str) |
| Swap the contents of the string with this string's. More...
|
|
void | clear () |
| Clear the string's contents. More...
|
|
size_t | size () const |
| Return the size of the string, in characters. More...
|
|
bool | empty () const |
| Is the string empty? More...
|
|
const char * | c_str () const |
| Return the (utf8 encoded) string data. More...
|
|
iterator | begin () const |
|
iterator | end () const |
|
iterator | findFirst (uint32 c) const |
|
iterator | findFirst (const UString &what) const |
|
iterator | findLast (uint32 c) const |
|
bool | beginsWith (const UString &with) const |
|
bool | endsWith (const UString &with) const |
|
bool | contains (const UString &what) const |
|
bool | contains (uint32 c) const |
|
void | truncate (const iterator &it) |
|
void | truncate (size_t n) |
|
void | trimLeft () |
|
void | trimRight () |
|
void | trim () |
|
void | replaceAll (uint32 what, uint32 with) |
| Replace all occurrences of a character with another character. More...
|
|
void | replaceAll (const UString &what, const UString &with) |
| Replace all occurrences of a substring with another substring. More...
|
|
void | makeLower () |
| Convert the string to lowercase. More...
|
|
void | makeUpper () |
| Convert the string to uppercase. More...
|
|
UString | toLower () const |
| Return a lowercased copy of the string. More...
|
|
UString | toUpper () const |
| Return an uppercased copy of the string. More...
|
|
iterator | getPosition (size_t n) const |
| Convert a numerical position into an iterator. More...
|
|
size_t | getPosition (iterator it) const |
| Convert an iterator into a numerical position. More...
|
|
void | insert (iterator pos, uint32 c) |
| Insert character c in front of this position. More...
|
|
void | insert (iterator pos, const UString &str) |
| Insert a string in front of this position. More...
|
|
void | replace (iterator pos, uint32 c) |
| Replace the character at this position with c. More...
|
|
void | replace (iterator pos, const UString &str) |
| Replace the characters at this position with str. More...
|
|
void | erase (iterator from, iterator to) |
| Erase the character within this range. More...
|
|
void | erase (iterator pos) |
| Erase the character at this position. More...
|
|
void | split (iterator splitPoint, UString &left, UString &right, bool remove=false) const |
|
UString | substr (iterator from, iterator to) const |
|
| Object () |
|
| Object (Object *object) |
|
virtual | ~Object () |
|
std::vector< Common::UString > | getSlots () const |
|
bool | hasMember (const Common::UString &id) |
|
virtual Variable | getMember (const Variable &id) |
|
virtual void | setMember (const Variable &id, const Variable &value) |
|
virtual void | setMember (const Common::UString &id, Function *function) |
|
Variable | call (const Common::UString &function, AVM &avm, const std::vector< Variable > &arguments=std::vector< Variable >()) |
|
Definition at line 40 of file string.h.