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

Function startsWith

lib/llvm/codegen.cpp:147–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147inline constexpr bool startsWith(std::string_view Value,
148 std::string_view Prefix) noexcept {
149 return Value.size() >= Prefix.size() &&
150 Value.substr(0, Prefix.size()) == Prefix;
151}
152
153std::filesystem::path uniquePath(const std::filesystem::path Model) noexcept {
154 using size_type = std::filesystem::path::string_type::size_type;

Callers 1

outputWasmLibraryFunction · 0.70

Calls 2

substrMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected