From 684319253f1783b7c8db02aebf0dadcd0c285be2 Mon Sep 17 00:00:00 2001 From: Yury Melnichek Date: Sun, 20 Nov 2011 18:55:01 +0100 Subject: [PATCH] [search] Set trie's first symbol approximation to 0, to prepare storing language as a first char. --- coding/trie.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coding/trie.hpp b/coding/trie.hpp index 032d54972d..d9a813e9cd 100644 --- a/coding/trie.hpp +++ b/coding/trie.hpp @@ -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 class Iterator