MCPcopy Create free account
hub / github.com/comaps/comaps / GetSuggestsCount

Method GetSuggestsCount

libs/search/result.cpp:316–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316size_t Results::GetSuggestsCount() const
317{
318 size_t i = 0;
319
320 // Suggests always go first, so we need to compute length of prefix
321 // of suggests.
322 while (i < m_results.size() && m_results[i].IsSuggest())
323 ++i;
324 return i;
325}
326
327bookmarks::Results const & Results::GetBookmarksResults() const
328{

Callers

nothing calls this directly

Calls 2

IsSuggestMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected