[search] Set trie's first symbol approximation to 0, to prepare storing language as a first char.

This commit is contained in:
Yury Melnichek 2011-11-20 18:55:01 +01:00 committed by Alex Zolotarev
parent 7524ae332a
commit 684319253f

View file

@ -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