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

Method getCStr

valdi_core/src/valdi_core/cpp/Utils/StringBox.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25StringBox::StringBox(StringBox&& other) noexcept : _internedString(std::move(other._internedString)) {}
26
27const char* StringBox::getCStr() const noexcept {
28 if (_internedString == nullptr) {
29 return "";
30 } else {
31 return _internedString->getCStr();
32 }
33}
34
35std::string_view StringBox::toStringView() const noexcept {
36 if (_internedString == nullptr) {

Callers 15

hasPrefixMethod · 0.45
hasSuffixMethod · 0.45
joinMethod · 0.45
convertInlineFunction · 0.45
toDoubleMethod · 0.45
toIntMethod · 0.45
toLongMethod · 0.45
whatMethod · 0.45
ValdiArchiveEntryMethod · 0.45
addEntryMethod · 0.45
handlerMethod · 0.45
GCDDispatchQueueMethod · 0.45

Calls

no outgoing calls

Tested by 3

createContentFunction · 0.36
TEST_FFunction · 0.36
valueToStringMethod · 0.36