MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / tryRead

Function tryRead

lib/validator/component_name.cpp:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool tryRead(std::string_view Prefix, std::string_view &Name) {
89 if (Prefix.size() > Name.size())
90 return false;
91 if (Prefix != Name.substr(0, Prefix.size()))
92 return false;
93
94 Name.remove_prefix(Prefix.size());
95 return true;
96}
97
98bool tryReadKebab(std::string_view &Input, std::string_view &Output) {
99 size_t Pos = 0;

Callers 3

isCanonVersionFunction · 0.85
tryParseIntegritySuffixFunction · 0.85
parseMethod · 0.85

Calls 2

substrMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected