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

Function isVersion

lib/validator/component_name.cpp:274–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274bool isVersion(std::string_view V) {
275 return isCanonVersion(V) || isValidSemver(V);
276}
277
278Unexpected<ErrCode> reportError(std::string_view Reason) {
279 spdlog::error(ErrCode::Value::ComponentInvalidName);

Callers 1

parseMethod · 0.85

Calls 2

isCanonVersionFunction · 0.85
isValidSemverFunction · 0.85

Tested by

no test coverage detected