2019-10-10 20:18:02 +08:00
|
|
|
#ifndef MSVC_STRING_H
|
|
|
|
#define MSVC_STRING_H
|
2019-09-23 07:50:21 +08:00
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace msvc {
|
|
|
|
union string_data_union {
|
|
|
|
char sbo[16];
|
|
|
|
void* ptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
class string {
|
|
|
|
public:
|
|
|
|
string_data_union data;
|
|
|
|
int64_t size;
|
|
|
|
int64_t cap;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-10-10 20:18:02 +08:00
|
|
|
#endif // MSVC_STRING_H
|