| 221 | } |
| 222 | |
| 223 | void findTableVariableNames(const std::string buf, std::regex tableRegex, |
| 224 | std::vector<std::string>& tempTableNames, std::vector<std::string>& foundTableNames) { |
| 225 | auto matches_begin = std::sregex_iterator(buf.begin(), buf.end(), tableRegex); |
| 226 | auto matches_end = std::sregex_iterator(); |
| 227 | |
| 228 | for (std::sregex_iterator i = matches_begin; i != matches_end; ++i) { |
| 229 | std::smatch match = *i; |
| 230 | tempTableNames.push_back(match[1].str()); |
| 231 | foundTableNames.push_back(match[2].str()); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | void keywordCompletion(std::string buf, std::string prefix, std::string keyword, |
| 236 | linenoiseCompletions* lc) { |
no test coverage detected