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
|
2024-04-24 12:10:51 -04:00
|
|
|
// VTABLE: BETA10 0x101c1be0
|
2024-01-01 19:17:38 -05:00
|
|
|
// SIZE 0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxString : public MxCore {
|
2023-04-27 22:19:39 -04:00
|
|
|
public:
|
2024-04-24 12:10:51 -04:00
|
|
|
MxString();
|
2024-01-24 21:16:29 -05:00
|
|
|
MxString(const MxString& p_str);
|
2024-04-24 12:10:51 -04:00
|
|
|
MxString(const char* p_str);
|
|
|
|
MxString(const char* p_str, MxU16 p_maxlen);
|
2024-02-01 15:42:10 -05:00
|
|
|
~MxString() override;
|
2023-04-27 22:19:39 -04:00
|
|
|
|
2024-04-24 12:10:51 -04:00
|
|
|
void Reverse();
|
2023-10-24 19:38:27 -04:00
|
|
|
void ToUpperCase();
|
|
|
|
void ToLowerCase();
|
2024-12-16 16:25:52 -05:00
|
|
|
void NormalizePath() { NormalizePath(m_data); }
|
2024-04-24 12:10:51 -04:00
|
|
|
|
2023-12-13 05:48:14 -05:00
|
|
|
MxString& operator=(const MxString& p_str);
|
2024-04-24 12:10:51 -04:00
|
|
|
const MxString& operator=(const char* p_str);
|
|
|
|
MxString operator+(const MxString& p_str) const;
|
|
|
|
MxString operator+(const char* p_str) const;
|
2023-12-13 05:48:14 -05:00
|
|
|
MxString& operator+=(const char* p_str);
|
2023-06-13 20:22:42 -04:00
|
|
|
|
2024-04-24 12:10:51 -04:00
|
|
|
static void CharSwap(char* p_a, char* p_b);
|
2024-12-16 16:25:52 -05:00
|
|
|
static void NormalizePath(char* p_path);
|
2024-04-24 12:10:51 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10017c50
|
2024-07-04 19:06:32 -04:00
|
|
|
char* GetData() const { return m_data; }
|
2024-04-24 12:10:51 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10067630
|
2024-07-04 19:06:32 -04:00
|
|
|
const MxU16 GetLength() const { return m_length; }
|
2023-06-27 14:44:02 -04:00
|
|
|
|
2024-04-24 12:10:51 -04:00
|
|
|
// FUNCTION: BETA10 0x100d8a30
|
2024-07-04 19:06:32 -04:00
|
|
|
MxBool Equal(const MxString& p_str) const { return strcmp(m_data, p_str.m_data) == 0; }
|
2024-04-24 12:10:51 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x1012a810
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS8 Compare(const MxString& p_str) const { return strcmp(m_data, p_str.m_data); }
|
2024-04-24 12:10:51 -04:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100ae280
|
2024-04-24 12:10:51 -04:00
|
|
|
// SYNTHETIC: BETA10 0x1012c9d0
|
2024-01-18 08:34:14 -05:00
|
|
|
// MxString::`scalar deleting destructor'
|
|
|
|
|
2023-04-27 22:19:39 -04:00
|
|
|
private:
|
2024-01-01 19:17:38 -05:00
|
|
|
char* m_data; // 0x08
|
|
|
|
MxU16 m_length; // 0x0c
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXSTRING_H
|