MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Func

Function Func

src/script/parsing.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22bool Func(const std::string& str, std::span<const char>& sp)
23{
24 if ((size_t)sp.size() >= str.size() + 2 && sp[str.size()] == '(' && sp[sp.size() - 1] == ')' && std::equal(str.begin(), str.end(), sp.begin())) {
25 sp = sp.subspan(str.size() + 1, sp.size() - str.size() - 2);
26 return true;
27 }
28 return false;
29}
30
31std::span<const char> Expr(std::span<const char>& sp)
32{

Callers 7

ParsePubkeyFunction · 0.85
ParseScriptFunction · 0.85
ParseKeyFunction · 0.85
ParseHexStrFunction · 0.85
ParseFunction · 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