MCPcopy Create free account
hub / github.com/Snapchat/Valdi / toStdString

Method toStdString

valdi_core/src/valdi_core/cpp/Utils/StaticString.cpp:92–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

toStringMethod · 0.45
TEST_PFunction · 0.45
runtimeOutputLogMethod · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 2

TEST_PFunction · 0.36
TEST_FFunction · 0.36