forked from organicmaps/organicmaps
Minor fix of using directive.
This commit is contained in:
parent
83860fac78
commit
1874e966ab
3 changed files with 10 additions and 10 deletions
|
@ -1,12 +1,10 @@
|
|||
#pragma once
|
||||
#include "../base/string_utils.hpp"
|
||||
#include "../base/base.hpp"
|
||||
|
||||
namespace search
|
||||
{
|
||||
|
||||
using strings::UniChar;
|
||||
|
||||
// This function should be used for all search strings normalization.
|
||||
inline strings::UniString NormalizeAndSimplifyString(string const & s)
|
||||
{
|
||||
strings::UniString uniS = strings::MakeLowerCase(strings::MakeUniString(s));
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
namespace search
|
||||
{
|
||||
|
||||
using strings::UniChar;
|
||||
|
||||
uint32_t DefaultMatchCost::Cost10(UniChar) const
|
||||
{
|
||||
return 256;
|
||||
|
|
|
@ -36,13 +36,13 @@ void PushMatchCost(PriorityQueyeT & q, uint32_t maxCost, uint32_t a, uint32_t b,
|
|||
class DefaultMatchCost
|
||||
{
|
||||
public:
|
||||
uint32_t Cost10(UniChar a) const;
|
||||
uint32_t Cost01(UniChar b) const;
|
||||
uint32_t Cost11(UniChar a, UniChar b) const;
|
||||
uint32_t Cost12(UniChar a, UniChar const * pB) const;
|
||||
uint32_t Cost21(UniChar const * pA, UniChar b) const;
|
||||
uint32_t Cost22(UniChar const * pA, UniChar const * pB) const;
|
||||
uint32_t SwapCost(UniChar a1, UniChar a2) const;
|
||||
uint32_t Cost10(strings::UniChar a) const;
|
||||
uint32_t Cost01(strings::UniChar b) const;
|
||||
uint32_t Cost11(strings::UniChar a, strings::UniChar b) const;
|
||||
uint32_t Cost12(strings::UniChar a, strings::UniChar const * pB) const;
|
||||
uint32_t Cost21(strings::UniChar const * pA, strings::UniChar b) const;
|
||||
uint32_t Cost22(strings::UniChar const * pA, strings::UniChar const * pB) const;
|
||||
uint32_t SwapCost(strings::UniChar a1, strings::UniChar a2) const;
|
||||
};
|
||||
|
||||
template <typename CharT, typename CostF>
|
||||
|
|
Loading…
Add table
Reference in a new issue