| 228 | }; |
| 229 | |
| 230 | void JoinQueryTokens(QueryParams const & params, TokenRange const & range, UniString const & sep, UniString & res) |
| 231 | { |
| 232 | ASSERT(range.IsValid(), (range)); |
| 233 | for (size_t i : range) |
| 234 | { |
| 235 | res.append(params.GetToken(i).GetOriginal()); |
| 236 | if (i + 1 != range.End()) |
| 237 | res.append(sep); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | /// @todo Can't change on string_view now, because of unordered_map<string> Affiliations. |
| 242 | [[nodiscard]] bool GetAffiliationName(FeatureType & ft, string & affiliation) |