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

Method substring

valdi_core/src/valdi_core/cpp/Utils/StringBox.cpp:272–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272StringBox StringBox::substring(size_t fromIndex) const noexcept {
273 return substring(fromIndex, length());
274}
275
276StringBox StringBox::substring(size_t fromIndex, size_t toIndex) const noexcept {
277 auto strView = std::string_view(getCStr() + fromIndex, toIndex - fromIndex);

Callers 15

URLMethod · 0.80
parseMethod · 0.80
logAsConsoleMethod · 0.80
logVariableMethod · 0.80
_getLocationMethod · 0.80
logCompletionsFunction · 0.80
labelMethod · 0.80
traverseFunction · 0.80
parseSourceMappingUrlFunction · 0.80
toClientPathFunction · 0.80

Calls 3

getGlobalFunction · 0.85
makeStringMethod · 0.80
lengthFunction · 0.50

Tested by

no test coverage detected