MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / findTableVariableNames

Function findTableVariableNames

tools/shell/embedded_shell.cpp:223–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void 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
235void keywordCompletion(std::string buf, std::string prefix, std::string keyword,
236 linenoiseCompletions* lc) {

Callers 1

completionFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected