aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/defines.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-12-08 17:05:39 +0900
committersatok <satok@google.com>2010-12-09 14:26:27 +0900
commit662fe69ba2b8513a1a6640adde917db9a13e98af (patch)
treeb1d2ba69358e8eeaefc06cea9e37e75c38a30c2f /native/src/defines.h
parent59cd73b91675a7a791e186ceb0fe73790ff9595b (diff)
downloadlatinime-662fe69ba2b8513a1a6640adde917db9a13e98af.tar.gz
latinime-662fe69ba2b8513a1a6640adde917db9a13e98af.tar.xz
latinime-662fe69ba2b8513a1a6640adde917db9a13e98af.zip
Suggest words with missing space
Bug: 3193883 Change-Id: I8d25f3e1d4db10be733d85edfa4f55a094feef80
Diffstat (limited to 'native/src/defines.h')
-rw-r--r--native/src/defines.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/native/src/defines.h b/native/src/defines.h
index c4f13e634..b459ba744 100644
--- a/native/src/defines.h
+++ b/native/src/defines.h
@@ -31,6 +31,10 @@
#define DEBUG_SHOW_FOUND_WORD false
#endif // FLAG_DBG
+#ifndef U_SHORT_MAX
+#define U_SHORT_MAX 1 << 16
+#endif
+
// 22-bit address = ~4MB dictionary size limit, which on average would be about 200k-300k words
#define ADDRESS_MASK 0x3FFFFF
@@ -49,9 +53,9 @@
#define DICTIONARY_HEADER_SIZE 2
#define NOT_VALID_WORD -99
-#define SUGGEST_MISSING_CHARACTERS true
-
-#define SUGGEST_EXCESSIVE_CHARACTERS true
+#define SUGGEST_WORDS_WITH_MISSING_CHARACTER true
+#define SUGGEST_WORDS_WITH_MISSING_SPACE_CHARACTER true
+#define SUGGEST_WORDS_WITH_EXCESSIVE_CHARACTER true
// This should be greater than or equal to MAX_WORD_LENGTH defined in BinaryDictionary.java
// This is only used for the size of array. Not to be used in c functions.
@@ -59,6 +63,8 @@
#define MAX_DEPTH_MULTIPLIER 3
+#define MIN_SUGGEST_DEPTH 2
+
#define min(a,b) ((a)<(b)?(a):(b))
#endif // LATINIME_DEFINES_H