diff options
author | 2012-02-27 19:48:47 +0900 | |
---|---|---|
committer | 2012-03-06 17:37:28 +0900 | |
commit | 46a1eec4d86f4b47434275065d3170728255f2c8 (patch) | |
tree | 825021ad3b50adfbd53bb21874d3c8dd7187d161 /native/src/unigram_dictionary.cpp | |
parent | 168d2c094ba5152cf8e1423f66c5e5e2a72e47f9 (diff) | |
download | latinime-46a1eec4d86f4b47434275065d3170728255f2c8.tar.gz latinime-46a1eec4d86f4b47434275065d3170728255f2c8.tar.xz latinime-46a1eec4d86f4b47434275065d3170728255f2c8.zip |
Add a variable-length header region to the binary format.
Also bump up the format version to 2.
Bug: 5686638
Change-Id: I3aafdd7e42c422202122998ec093280051aa8e07
Diffstat (limited to 'native/src/unigram_dictionary.cpp')
-rw-r--r-- | native/src/unigram_dictionary.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/native/src/unigram_dictionary.cpp b/native/src/unigram_dictionary.cpp index 155bdcb7a..0b646d1cd 100644 --- a/native/src/unigram_dictionary.cpp +++ b/native/src/unigram_dictionary.cpp @@ -38,8 +38,7 @@ const UnigramDictionary::digraph_t UnigramDictionary::GERMAN_UMLAUT_DIGRAPHS[] = UnigramDictionary::UnigramDictionary(const uint8_t* const streamStart, int typedLetterMultiplier, int fullWordMultiplier, int maxWordLength, int maxWords, int maxProximityChars, const bool isLatestDictVersion) - : DICT_ROOT(streamStart + NEW_DICTIONARY_HEADER_SIZE), - MAX_WORD_LENGTH(maxWordLength), MAX_WORDS(maxWords), + : DICT_ROOT(streamStart), MAX_WORD_LENGTH(maxWordLength), MAX_WORDS(maxWords), MAX_PROXIMITY_CHARS(maxProximityChars), IS_LATEST_DICT_VERSION(isLatestDictVersion), TYPED_LETTER_MULTIPLIER(typedLetterMultiplier), FULL_WORD_MULTIPLIER(fullWordMultiplier), // TODO : remove this variable. |