mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-02 02:53:44 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
31
search/search_params.cpp
Normal file
31
search/search_params.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "search/search_params.hpp"
|
||||
|
||||
#include "geometry/mercator.hpp"
|
||||
|
||||
#include "coding/string_utf8_multilang.hpp"
|
||||
|
||||
#include "base/assert.hpp"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace search
|
||||
{
|
||||
bool SearchParams::IsEqualCommon(SearchParams const & rhs) const
|
||||
{
|
||||
return m_query == rhs.m_query && m_inputLocale == rhs.m_inputLocale &&
|
||||
static_cast<bool>(m_position) == static_cast<bool>(rhs.m_position) && m_mode == rhs.m_mode;
|
||||
}
|
||||
|
||||
string DebugPrint(SearchParams const & params)
|
||||
{
|
||||
ostringstream os;
|
||||
os << "SearchParams [";
|
||||
os << "query: " << params.m_query << ", ";
|
||||
os << "locale: " << params.m_inputLocale << ", ";
|
||||
os << "mode: " << DebugPrint(params.m_mode);
|
||||
os << "]";
|
||||
return os.str();
|
||||
}
|
||||
} // namespace search
|
||||
Reference in New Issue
Block a user