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

Function toLowerStr

lib/validator/component_validator.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18namespace {
19std::string toLowerStr(std::string_view SV) {
20 std::string Result(SV);
21 std::transform(
22 Result.begin(), Result.end(), Result.begin(),
23 [](unsigned char C) { return static_cast<char>(std::tolower(C)); });
24 return Result;
25}
26
27// Maps a component-side ExternDesc::DescType to its Sort::SortType.
28// Returns nullopt for `CoreType` (= `(core module (type i))`), which has no

Callers 1

validateMethod · 0.85

Calls 3

tolowerFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected