| 786 | |
| 787 | namespace fdb_cli { |
| 788 | void 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 | |
| 802 | void onOffGenerator(const char* text, const char* line, std::vector<std::string>& lc) { |
no test coverage detected