104 static void CharSwap(
char* p_a,
char* p_b);
[AI] Base virtual class for all Mindscape engine (Mx) objects.
Mindscape custom string class for managing dynamic C-strings within the game engine.
char * GetData() const
Returns a pointer to the internal character buffer.
static void CharSwap(char *p_a, char *p_b)
Utility to swap the values of two characters.
void ToLowerCase()
Converts the string contents to lowercase in-place.
MxString()
Default constructor which creates an empty string.
void Reverse()
Reverses the contents of the string in-place.
MxString operator+(const MxString &p_str) const
Concatenation operator for two MxString instances.
MxS8 Compare(const MxString &p_str) const
Performs lexicographical comparison to another string.
const MxU16 GetLength() const
Returns the length of the string (number of characters, not including null terminator).
~MxString() override
Destructor.
void ToUpperCase()
Converts the string contents to uppercase in-place.
MxString & operator=(const MxString &p_str)
Assignment operator from another MxString.
MxString & operator+=(const char *p_str)
Append a C-string to this MxString.
MxBool Equal(const MxString &p_str) const
Compares this string to another for equality.