aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/dictionary.cpp
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-02-23 18:28:14 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-02-23 18:28:14 -0800
commit10c169a44dcbaf5784d478c4504eb6328e992f81 (patch)
tree560a5e81636e59cf678244c2b9fce892035d7327 /native/src/dictionary.cpp
parentededda059c45c83b2e217380c24370b14cfa7eb3 (diff)
parent8fbd55229243cb66c03d5ea1f79dfb39f596590d (diff)
downloadlatinime-10c169a44dcbaf5784d478c4504eb6328e992f81.tar.gz
latinime-10c169a44dcbaf5784d478c4504eb6328e992f81.tar.xz
latinime-10c169a44dcbaf5784d478c4504eb6328e992f81.zip
Merge "Add proximity info to native"
Diffstat (limited to 'native/src/dictionary.cpp')
-rw-r--r--native/src/dictionary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/dictionary.cpp b/native/src/dictionary.cpp
index fe3375706..d69cb2a53 100644
--- a/native/src/dictionary.cpp
+++ b/native/src/dictionary.cpp
@@ -23,6 +23,7 @@
namespace latinime {
+// TODO: Change the type of all keyCodes to uint32_t
Dictionary::Dictionary(void *dict, int dictSize, int mmapFd, int dictBufAdjust,
int typedLetterMultiplier, int fullWordMultiplier,
int maxWordLength, int maxWords, int maxAlternatives)
@@ -53,8 +54,7 @@ bool Dictionary::hasBigram() {
}
// TODO: use uint16_t instead of unsigned short
-bool Dictionary::isValidWord(unsigned short *word, int length)
-{
+bool Dictionary::isValidWord(unsigned short *word, int length) {
if (IS_LATEST_DICT_VERSION) {
return (isValidWordRec(DICTIONARY_HEADER_SIZE, word, 0, length) != NOT_VALID_WORD);
} else {