23 lines
395 B
C
23 lines
395 B
C
|
#ifndef WSTRING_H
|
||
|
#define WSTRING_H
|
||
|
#include <cstdint>
|
||
|
|
||
|
namespace msvc {
|
||
|
union wstring_data_union {
|
||
|
wchar_t sbo[8];
|
||
|
wchar_t *ptr;
|
||
|
};
|
||
|
class wstring {
|
||
|
public:
|
||
|
wstring_data_union data;
|
||
|
int64_t size;
|
||
|
int64_t cap;
|
||
|
|
||
|
wstring(wchar_t* str);
|
||
|
~wstring();
|
||
|
};
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // WSTRING_H
|