[search] Add FeatureTypeToString().

This commit is contained in:
Yury Melnichek 2011-10-20 13:25:20 +02:00 committed by Alex Zolotarev
parent 6809f67d42
commit 8f46ba9a1b
3 changed files with 10 additions and 0 deletions

View file

@ -38,6 +38,7 @@ SOURCES += \
mwm_set.cpp \
index.cpp \
categories_holder.cpp \
search_string_utils.cpp
HEADERS += \
feature.hpp \

View file

@ -0,0 +1,7 @@
#include "search_string_utils.hpp"
strings::UniString search::FeatureTypeToString(uint32_t type)
{
string s = "!type:" + strings::to_string(type);
return strings::UniString(s.begin(), s.end());
}

View file

@ -21,4 +21,6 @@ void SplitUniString(strings::UniString const & uniS, F f, DelimsT const & delims
f(iter.GetUniString());
}
strings::UniString FeatureTypeToString(uint32_t type);
} // namespace search