aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/dictionary.cpp
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-12-02 20:19:59 +0900
committersatok <satok@google.com>2010-12-03 10:01:09 +0900
commit715514d7dd5716c77781b97d4f6ac8eace75e8b3 (patch)
tree42904c53594274a0531de91cedf5878f194fbdd3 /native/src/dictionary.cpp
parenta0e780fa4c591014e78193af6ec0ebefa32b89a1 (diff)
downloadlatinime-715514d7dd5716c77781b97d4f6ac8eace75e8b3.tar.gz
latinime-715514d7dd5716c77781b97d4f6ac8eace75e8b3.tar.xz
latinime-715514d7dd5716c77781b97d4f6ac8eace75e8b3.zip
Breakdown getWordRec and add comments
Change-Id: I88bad8a4a8177e3540b995b664c47b86d6904027
Diffstat (limited to 'native/src/dictionary.cpp')
-rw-r--r--native/src/dictionary.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/native/src/dictionary.cpp b/native/src/dictionary.cpp
index 05692f7ef..6936dc928 100644
--- a/native/src/dictionary.cpp
+++ b/native/src/dictionary.cpp
@@ -29,6 +29,9 @@ Dictionary::Dictionary(void *dict, int typedLetterMultiplier, int fullWordMultip
// Checks whether it has the latest dictionary or the old dictionary
IS_LATEST_DICT_VERSION((((unsigned char*) dict)[0] & 0xFF) >= DICTIONARY_VERSION_MIN)
{
+ if (MAX_WORD_LENGTH_INTERNAL < maxWordLength) {
+ LOGI("Max word length (%d) is greater than %d", maxWordLength, MAX_WORD_LENGTH_INTERNAL);
+ }
LOGI("IN NATIVE SUGGEST Version: %d \n", (DICT[0] & 0xFF));
mUnigramDictionary = new UnigramDictionary(DICT, typedLetterMultiplier, fullWordMultiplier,
maxWordLength, maxWords, maxAlternatives, IS_LATEST_DICT_VERSION);