MCPcopy Create free account
hub / github.com/Icinga/icinga2 / AddSuggestion

Function AddSuggestion

lib/remote/consolehandler.cpp:248–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248static void AddSuggestion(std::vector<String>& matches, const String& word, const String& suggestion)
249{
250 if (suggestion.Find(word) != 0)
251 return;
252
253 matches.push_back(suggestion);
254}
255
256static void AddSuggestions(std::vector<String>& matches, const String& word, const String& pword, bool withFields, const Value& value)
257{

Callers 2

AddSuggestionsFunction · 0.85

Calls 2

FindMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected