diff options
author | vng <viktor.govako@gmail.com> | 2012-08-21 14:32:43 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:42:00 +0300 |
commit | 8c24fdf04016b109c3cf932fd5b663a54d432d40 (patch) | |
tree | d396f9b1daefc469308fac1bb22cd8c297cbe9cf /indexer/feature.cpp | |
parent | 73b11cd8d57388d167c6143301e8183e68b103de (diff) |
[search] Fix scoring routine for matched keywords.
Diffstat (limited to 'indexer/feature.cpp')
-rw-r--r-- | indexer/feature.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indexer/feature.cpp b/indexer/feature.cpp index 87b3e6bf8e..dfb406a894 100644 --- a/indexer/feature.cpp +++ b/indexer/feature.cpp @@ -290,6 +290,15 @@ void FeatureType::GetPreferredDrawableNames(string & defaultName, string & intNa } } +bool FeatureType::GetName(int8_t lang, string & name) const +{ + if (!HasName()) + return false; + + ParseCommon(); + return m_Params.name.GetString(lang, name); +} + uint8_t FeatureType::GetRank() const { ParseCommon(); |