MCPcopy Create free account
hub / github.com/ElementsProject/elements / Const

Function Const

src/util/spanparsing.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace spanparsing {
13
14bool Const(const std::string& str, Span<const char>& sp)
15{
16 if ((size_t)sp.size() >= str.size() && std::equal(str.begin(), str.end(), sp.begin())) {
17 sp = sp.subspan(str.size());
18 return true;
19 }
20 return false;
21}
22
23bool Func(const std::string& str, Span<const char>& sp)
24{

Callers 3

ParseScriptFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
FUZZ_TARGETFunction · 0.85

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGETFunction · 0.68