xoreos  0.0.5
Public Member Functions | List of all members
Aurora::ActionScript::String Class Reference

#include <string.h>

Inheritance diagram for Aurora::ActionScript::String:
Inheritance graph
[legend]
Collaboration diagram for Aurora::ActionScript::String:
Collaboration graph
[legend]

Public Member Functions

 String ()
 
- Public Member Functions inherited from Common::UString
 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 ()
 
UStringoperator= (const UString &str)
 
UStringoperator= (const std::string &str)
 
UStringoperator= (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
 
UStringoperator+= (const UString &str)
 
UStringoperator+= (const std::string &str)
 
UStringoperator+= (const char *str)
 
UStringoperator+= (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
 
- Public Member Functions inherited from Aurora::ActionScript::Object
 Object ()
 
 Object (Object *object)
 
virtual ~Object ()
 
std::vector< Common::UStringgetSlots () 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 >())
 

Additional Inherited Members

- Public Types inherited from Common::UString
typedef utf8::iterator< std::string::const_iterator > iterator
 
- Static Public Member Functions inherited from Common::UString
static UString format (const char *s,...) GCC_PRINTF(1
 Print formatted data into an UString object, similar to sprintf(). More...
 
static UString static size_t split (const UString &text, uint32 delim, std::vector< UString > &texts)
 
static void splitTextTokens (const UString &text, std::vector< UString > &tokens)
 
static uint32 toLower (uint32 c)
 
static uint32 toUpper (uint32 c)
 
static bool isASCII (uint32 c)
 Is the character an ASCII character? More...
 
static bool isSpace (uint32 c)
 Is the character an ASCII space character? More...
 
static bool isDigit (uint32 c)
 Is the character an ASCII digit character? More...
 
static bool isAlpha (uint32 c)
 Is the character an ASCII alphabetic character? More...
 
static bool isAlNum (uint32 c)
 Is the character an ASCII alphanumeric character? More...
 
static bool isCntrl (uint32 c)
 Is the character an ASCII control character? More...
 
static uint32 fromUTF16 (uint16 c)
 

Detailed Description

Definition at line 40 of file string.h.

Constructor & Destructor Documentation

◆ String()

Aurora::ActionScript::String::String ( )

Definition at line 31 of file string.cpp.


The documentation for this class was generated from the following files: