| 90 | } |
| 91 | |
| 92 | std::string StaticString::toStdString() const { |
| 93 | auto asUTF8 = utf8Storage(); |
| 94 | return std::string(asUTF8.data, asUTF8.length); |
| 95 | } |
| 96 | |
| 97 | std::wstring StaticString::toStdWString() const { |
| 98 | static_assert(sizeof(wchar_t) == 2 || sizeof(wchar_t) == 4, "wchar_t must be 2 or 4 bytes"); |
no outgoing calls