mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-23 07:58:21 -05:00
bc5ca621a4
* Add ncc tool * Add symlink * Fixes * Try this * Try this * Try this * Try this * Add include path * Update style * Update style * Add more rules * Fix style * Update styles * Fix name parameter * Fix MxParam p * Fix m_unk0x pattern * Allow 4 digits for relative hex * Add missing offset * Fix some parameters * Fix some vtables * Fix more vtables * Update rules, fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * Fix last issue * Update readme * Update readme * Update CONTRIBUTING.md * Fix annotations * Rename * Update CONTRIBUTING.md * Update README.md
29 lines
720 B
C++
29 lines
720 B
C++
#ifndef MXSTRING_H
|
|
#define MXSTRING_H
|
|
|
|
#include "mxcore.h"
|
|
|
|
// VTABLE: LEGO1 0x100dc110
|
|
class MxString : public MxCore {
|
|
public:
|
|
__declspec(dllexport) MxString(const MxString& p_str);
|
|
__declspec(dllexport) virtual ~MxString();
|
|
__declspec(dllexport) const MxString& operator=(const char* p_data);
|
|
|
|
MxString();
|
|
MxString(const char*);
|
|
void ToUpperCase();
|
|
void ToLowerCase();
|
|
MxString& operator=(const MxString& p_str);
|
|
MxString operator+(const char* p_str);
|
|
MxString& operator+=(const char* p_str);
|
|
|
|
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
|