| 160 | } |
| 161 | |
| 162 | bool 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 | |
| 175 | void CategoriesHolder::LoadFromStream(std::istream & s) |
| 176 | { |
nothing calls this directly
no test coverage detected