isle/LEGO1/mxstring.h
MS 8861acaf20
Refactor MxHashTable/MxVariableTable (#283)
* Refactor MxHashTable/MxVariableTable

* Use MxS8 for Compare return type

* Cursor::DeleteMatch check and clang fix
2023-11-12 19:25:56 -05:00

29 lines
682 B
C++

#ifndef MXSTRING_H
#define MXSTRING_H
#include "mxcore.h"
// VTABLE 0x100dc110
class MxString : public MxCore {
public:
__declspec(dllexport) MxString(const MxString&);
__declspec(dllexport) virtual ~MxString();
__declspec(dllexport) const MxString& operator=(const char*);
MxString();
MxString(const char*);
void ToUpperCase();
void ToLowerCase();
MxString& operator=(const MxString&);
MxString operator+(const char*);
MxString& operator+=(const char*);
inline MxS8 Compare(const MxString& p_str) const { return strcmp(m_data, p_str.m_data); }
inline const char* GetData() const { return m_data; }
private:
char* m_data;
MxU16 m_length;
};
#endif // MXSTRING_H