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

Function FindNextChar

src/script/miniscript.cpp:421–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421int FindNextChar(std::span<const char> sp, const char m)
422{
423 for (int i = 0; i < (int)sp.size(); ++i) {
424 if (sp[i] == m) return i;
425 // We only search within the current parentheses
426 if (sp[i] == ')') break;
427 }
428 return -1;
429}
430
431} // namespace internal
432} // namespace miniscript

Callers 1

ParseFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected