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

Method toStringView

valdi_core/src/valdi_core/cpp/Utils/StringBox.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::string_view StringBox::toStringView() const noexcept {
36 if (_internedString == nullptr) {
37 // NOLINTNEXTLINE(bugprone-string-constructor)
38 return std::string_view("", 0);
39 } else {
40 return _internedString->toStringView();
41 }
42}
43
44std::string StringBox::slowToString() const noexcept {
45 return std::string(toStringView());

Callers 15

unmarshallMethod · 0.45
visitMethod · 0.45
toStringMethod · 0.45
operator()Method · 0.45
getTraceNameFunction · 0.45
ScopedTraceMethod · 0.45
assertEmptyMethod · 0.45
StringBox.cppFile · 0.45
prependMethod · 0.45
appendMethod · 0.45
operator==Function · 0.45
operator<Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected