mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-12 18:51:15 +00:00
* Make Infocenter compatible with 1.0 versions * Fix * Emscripten patch * Fix * Fix Emscripten patch * Window title * Naming * Don't exit car build automatically in 1.0 * Disable character selection by clicking icon in 1.0 * Remove obsolete includes
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
#ifndef MXSTRING_H
|
|
#define MXSTRING_H
|
|
|
|
#include "lego1_export.h"
|
|
#include "mxcore.h"
|
|
|
|
// VTABLE: LEGO1 0x100dc110
|
|
// VTABLE: BETA10 0x101c1be0
|
|
// SIZE 0x10
|
|
class MxString : public MxCore {
|
|
public:
|
|
MxString();
|
|
MxString(const MxString& p_str);
|
|
LEGO1_EXPORT MxString(const char* p_str);
|
|
MxString(const char* p_str, MxU16 p_maxlen);
|
|
LEGO1_EXPORT ~MxString() override;
|
|
|
|
void Reverse();
|
|
void ToUpperCase();
|
|
void ToLowerCase();
|
|
void MapPathToFilesystem() { MapPathToFilesystem(m_data); }
|
|
|
|
LEGO1_EXPORT MxString& operator=(const MxString& p_str);
|
|
LEGO1_EXPORT const MxString& operator=(const char* p_str);
|
|
LEGO1_EXPORT MxString operator+(const MxString& p_str) const;
|
|
LEGO1_EXPORT MxString operator+(const char* p_str) const;
|
|
LEGO1_EXPORT MxString& operator+=(const char* p_str);
|
|
|
|
static void CharSwap(char* p_a, char* p_b);
|
|
LEGO1_EXPORT static void MapPathToFilesystem(char* p_path);
|
|
|
|
// FUNCTION: BETA10 0x10017c50
|
|
char* GetData() const { return m_data; }
|
|
|
|
// FUNCTION: BETA10 0x10067630
|
|
const MxU16 GetLength() const { return m_length; }
|
|
|
|
// FUNCTION: BETA10 0x100d8a30
|
|
MxBool Equal(const MxString& p_str) const { return strcmp(m_data, p_str.m_data) == 0; }
|
|
|
|
// FUNCTION: BETA10 0x1012a810
|
|
MxS8 Compare(const MxString& p_str) const { return strcmp(m_data, p_str.m_data); }
|
|
|
|
// SYNTHETIC: LEGO1 0x100ae280
|
|
// SYNTHETIC: BETA10 0x1012c9d0
|
|
// MxString::`scalar deleting destructor'
|
|
|
|
private:
|
|
char* m_data; // 0x08
|
|
MxU16 m_length; // 0x0c
|
|
};
|
|
|
|
#endif // MXSTRING_H
|