MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / exactMatch

Method exactMatch

src/CLI2.cpp:1029–1036  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Search for exact 'value' in _entities category.

Source from the content-addressed store, hash-verified

1027////////////////////////////////////////////////////////////////////////////////
1028// Search for exact 'value' in _entities category.
1029bool CLI2::exactMatch(const std::string& category, const std::string& value) const {
1030 // Extract a list of entities for category.
1031 auto c = _entities.equal_range(category);
1032 for (auto e = c.first; e != c.second; ++e)
1033 if (value == e->second) return true;
1034
1035 return false;
1036}
1037
1038////////////////////////////////////////////////////////////////////////////////
1039// +tag --> tags _hastag_ tag

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected