MCPcopy Create free account
hub / github.com/apple/foundationdb / optionGenerator

Function optionGenerator

fdbcli/fdbcli.actor.cpp:776–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776void optionGenerator(const char* text, const char* line, std::vector<std::string>& lc) {
777 int len = strlen(text);
778
779 for (auto iter = validOptions.begin(); iter != validOptions.end(); ++iter) {
780 const char* name = (*iter).c_str();
781 if (!strncmp(name, text, len)) {
782 lc.push_back(newCompletion(line, name));
783 }
784 }
785}
786
787namespace fdb_cli {
788void arrayGenerator(const char* text, const char* line, const char** options, std::vector<std::string>& lc) {

Callers 1

fdbcliCompCmdFunction · 0.85

Calls 5

newCompletionFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected