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

Method hasPrefix

valdi_core/src/valdi_core/cpp/Utils/StringBox.cpp:192–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192bool StringBox::hasPrefix(const char* prefix) const noexcept {
193 return Valdi::hasPrefix(toStringView(), 0, prefix);
194}
195
196bool StringBox::hasPrefix(const StringBox& prefix) const noexcept {
197 return Valdi::hasPrefix(toStringView(), 0, prefix.getCStr());

Callers 13

URLMethod · 0.80
TEST_PMethod · 0.80
TEST_PFunction · 0.80
TESTFunction · 0.80
moveViewToTreeMethod · 0.80
getFieldNameMethod · 0.80
enableTSNForModuleMethod · 0.80
isAssetBytesUrlMethod · 0.80
makeLocalFilenameFunction · 0.80
populateSourceMapMethod · 0.80
isAssetUrlMethod · 0.80
doLoadMethod · 0.80

Calls 2

hasPrefixFunction · 0.50
getCStrMethod · 0.45

Tested by 3

TEST_PMethod · 0.64
TEST_PFunction · 0.64
TESTFunction · 0.64