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

Method ValidKeyToken

libs/indexer/categories_holder.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162bool CategoriesHolder::ValidKeyToken(strings::UniString const & s)
163{
164 if (s.size() > 2)
165 return true;
166
167 /// @todo We need to have global stop words array for the most used languages.
168 for (char const * token : {"a", "z", "s", "d", "di", "de", "le", "ra", "ao"})
169 if (s.IsEqualAscii(token))
170 return false;
171
172 return true;
173}
174
175void CategoriesHolder::LoadFromStream(std::istream & s)
176{

Callers

nothing calls this directly

Calls 2

IsEqualAsciiMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected