Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2016-02-26 21:10:51 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:49:33 +0300
commit121417c776bb7fd507520c381d36cc1d692a8d01 (patch)
treef62e65c2c562fa9dcb206c71971dda5c7fc7d621 /indexer/search_string_utils.hpp
parent48c686fb1620e8c776fd4738f81f6933d0924460 (diff)
search::Contains with normalization.
Diffstat (limited to 'indexer/search_string_utils.hpp')
-rw-r--r--indexer/search_string_utils.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indexer/search_string_utils.hpp b/indexer/search_string_utils.hpp
index 5abf4c19c9..afa4459f7a 100644
--- a/indexer/search_string_utils.hpp
+++ b/indexer/search_string_utils.hpp
@@ -114,4 +114,8 @@ void GetStreetName(strings::SimpleTokenizer iter, string & streetName);
void GetStreetNameAsKey(string const & name, string & res);
bool IsStreetSynonym(strings::UniString const & s);
+
+/// Normalizes both str and substr, and then returns true if substr is found in str.
+/// Used in native platform code for search in localized strings (cuisines, categories, strings etc.).
+bool ContainsNormalized(string const & str, string const & substr);
} // namespace search