forked from organicmaps/organicmaps
[search] Set trie's first symbol approximation to 0, to prepare storing language as a first char.
This commit is contained in:
parent
7524ae332a
commit
684319253f
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ typedef uint32_t TrieChar;
|
|||
|
||||
// 95 is a good value for the default baseChar, since both small and capital latin letters
|
||||
// are less than +/- 32 from it and thus can fit into supershort edge.
|
||||
static uint32_t const DEFAULT_CHAR = 95;
|
||||
// However 0 is used because the first byte is actually language id.
|
||||
static uint32_t const DEFAULT_CHAR = 0;
|
||||
|
||||
template <typename ValueT, typename EdgeValueT>
|
||||
class Iterator
|
||||
|
|
Loading…
Add table
Reference in a new issue