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:
authorMaxim Pimenov <m@maps.me>2017-10-25 15:08:01 +0300
committerYuri Gorshenin <mipt.vi002@gmail.com>2017-10-25 19:08:13 +0300
commitb34c94038ba0628a38ee073c2e512577eebaf336 (patch)
tree3d2198d3d2b6fa96f78bb51d4c41c515e631071f /indexer/search_string_utils.hpp
parent8530bc5a1d1b3bf32e0c92a543d5bd2f9f24963e (diff)
[search] A refactoring of ranker.
- Factored out assigning the highlight ranges. - Moved several Ranker's methods to the private section. - Renamed PreResult1 to PreRankerResult and PreResult2 to RankerResult. - Moved result comparators closer to their call sites (changing them to lambdas). - Removed IndexedValue. - Moved KeywordsScorer from Ranker to Processor. - Added a type alias for query tokens.
Diffstat (limited to 'indexer/search_string_utils.hpp')
-rw-r--r--indexer/search_string_utils.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indexer/search_string_utils.hpp b/indexer/search_string_utils.hpp
index 8d1ddcd35e..cad9a1e361 100644
--- a/indexer/search_string_utils.hpp
+++ b/indexer/search_string_utils.hpp
@@ -55,6 +55,9 @@ bool TokenizeStringAndCheckIfLastTokenIsPrefix(std::string const & s, Tokens & t
return TokenizeStringAndCheckIfLastTokenIsPrefix(NormalizeAndSimplifyString(s), tokens, delims);
}
+// Chops off the last query token (the "prefix" one) from |str| and stores the result in |res|.
+void GetStringPrefix(std::string const & str, std::string & res);
+
strings::UniString GetStreetNameAsKey(std::string const & name);
// *NOTE* The argument string must be normalized and simplified.
@@ -99,5 +102,4 @@ private:
Callback m_callback;
};
-
} // namespace search