MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / Foo

Function Foo

tests/runtime/cpp/param-ownership/test.cpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <string_view>
5namespace exports::test::ownership {
6wit::vector<wit::vector<wit::string>>
7Foo(wit::vector<wit::vector<wit::string>> a) {
8 for (size_t i = 0; i < a.size(); ++i) {
9 for (size_t j = 0; j < a[i].size(); ++j) {
10 for (char &c : a[i][j]) {
11 c = std::toupper(c);
12 }
13 }
14 }
15 return a;
16}
17
18void Bar(Thing a) {
19 assert(a.name.get_view() == "thing");

Callers 3

RunMethod · 0.70
RunMethod · 0.70
RunMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected