2023-04-27 22:19:39 -04:00
|
|
|
#ifndef MXSTRING_H
|
|
|
|
#define MXSTRING_H
|
|
|
|
|
2023-04-29 23:39:01 -04:00
|
|
|
#include "mxcore.h"
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc110
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxString : public MxCore {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2023-12-13 05:48:14 -05:00
|
|
|
__declspec(dllexport) MxString(const MxString& p_str);
|
2023-10-24 19:38:27 -04:00
|
|
|
__declspec(dllexport) virtual ~MxString();
|
2023-12-13 05:48:14 -05:00
|
|
|
__declspec(dllexport) const MxString& operator=(const char* p_data);
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
MxString();
|
|
|
|
MxString(const char*);
|
|
|
|
void ToUpperCase();
|
|
|
|
void ToLowerCase();
|
2023-12-13 05:48:14 -05:00
|
|
|
MxString& operator=(const MxString& p_str);
|
|
|
|
MxString operator+(const char* p_str);
|
|
|
|
MxString& operator+=(const char* p_str);
|
2023-06-13 20:22:42 -04:00
|
|
|
|
2023-11-12 19:25:56 -05:00
|
|
|
inline MxS8 Compare(const MxString& p_str) const { return strcmp(m_data, p_str.m_data); }
|
2023-10-24 19:38:27 -04:00
|
|
|
inline const char* GetData() const { return m_data; }
|
2023-06-27 14:44:02 -04:00
|
|
|
|
2023-04-27 22:19:39 -04:00
|
|
|
private:
|
2023-10-24 19:38:27 -04:00
|
|
|
char* m_data;
|
|
|
|
MxU16 m_length;
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXSTRING_H
|