diff options
author | vng <viktor.govako@gmail.com> | 2015-06-11 13:41:21 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:50:47 +0300 |
commit | 66c0a27d163c294346f012263dae546cba972e71 (patch) | |
tree | 42a711ff312a6708613a13a3ac354540df0d4a14 /indexer/search_string_utils.hpp | |
parent | e56bf8f4227289b46cc3fab93221c04daa998f21 (diff) |
[search] Treat “и” and “й” as equal in tokens matching.
Diffstat (limited to 'indexer/search_string_utils.hpp')
-rw-r--r-- | indexer/search_string_utils.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indexer/search_string_utils.hpp b/indexer/search_string_utils.hpp index 53a6977971..c6acea8e17 100644 --- a/indexer/search_string_utils.hpp +++ b/indexer/search_string_utils.hpp @@ -39,7 +39,12 @@ inline strings::UniString NormalizeAndSimplifyString(string const & s) break; } } + MakeLowerCaseInplace(uniString); + NormalizeInplace(uniString); + return uniString; + + /* // Just after lower casing is a correct place to avoid normalization for specific chars. static auto const isSpecificChar = [](UniChar c) -> bool { @@ -60,6 +65,7 @@ inline strings::UniString NormalizeAndSimplifyString(string const & s) i = j + 1; } return result; + */ } template <class DelimsT, typename F> |