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

Function arrayGenerator

fdbcli/fdbcli.actor.cpp:788–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786
787namespace fdb_cli {
788void arrayGenerator(const char* text, const char* line, const char** options, std::vector<std::string>& lc) {
789 const char** iter = options;
790 int len = strlen(text);
791
792 while (*iter) {
793 const char* name = *iter;
794 iter++;
795 if (!strncmp(name, text, len)) {
796 lc.push_back(newCompletion(line, name));
797 }
798 }
799}
800} // namespace fdb_cli
801
802void onOffGenerator(const char* text, const char* line, std::vector<std::string>& lc) {

Callers 6

configureGeneratorFunction · 0.85
onOffGeneratorFunction · 0.85
throttleGeneratorFunction · 0.85
statusGeneratorFunction · 0.85
killGeneratorFunction · 0.85
metaclusterGeneratorFunction · 0.85

Calls 2

newCompletionFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected