MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setChoices

Method setChoices

valdi/src/valdi/standalone_runtime/ArgumentsParser.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38Ref<Argument> Argument::setChoices(std::vector<StringBox> choices) {
39 _choices = std::move(choices);
40 _hasChoices = true;
41 return strongSmallRef(this);
42}
43
44Ref<Argument> Argument::setChoices(const std::string_view* choices, size_t length) {
45 std::vector<StringBox> out;

Callers 3

precompileFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 4

strongSmallRefFunction · 0.85
getGlobalFunction · 0.85
makeStringMethod · 0.80
reserveMethod · 0.45

Tested by

no test coverage detected