aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/defines.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-08-12 01:05:27 +0900
committersatok <satok@google.com>2011-08-15 17:13:39 +0900
commit0cedd2bcc3efcec30ea542ceb8d9161afa764a62 (patch)
tree1ed4aae5072e65481e99a85e5767b0493ef40b26 /native/src/defines.h
parent88b22e255291c708005f2fce70310a7a4b036bcb (diff)
downloadlatinime-0cedd2bcc3efcec30ea542ceb8d9161afa764a62.tar.gz
latinime-0cedd2bcc3efcec30ea542ceb8d9161afa764a62.tar.xz
latinime-0cedd2bcc3efcec30ea542ceb8d9161afa764a62.zip
Combilne normal correction and skip correction
Change-Id: Ide868d977c0f35900340c7be1b71d572c69a8806
Diffstat (limited to 'native/src/defines.h')
-rw-r--r--native/src/defines.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/native/src/defines.h b/native/src/defines.h
index c1838d341..c1d08e695 100644
--- a/native/src/defines.h
+++ b/native/src/defines.h
@@ -94,20 +94,36 @@ static void prof_out(void) {
#endif
#define DEBUG_DICT true
#define DEBUG_DICT_FULL false
+#define DEBUG_EDIT_DISTANCE false
#define DEBUG_SHOW_FOUND_WORD DEBUG_DICT_FULL
#define DEBUG_NODE DEBUG_DICT_FULL
#define DEBUG_TRACE DEBUG_DICT_FULL
#define DEBUG_PROXIMITY_INFO true
+#define DUMP_WORD(word, length) do { dumpWord(word, length); } while(0)
+
+static char charBuf[50];
+
+static void dumpWord(const unsigned short* word, const int length) {
+ for (int i = 0; i < length; ++i) {
+ charBuf[i] = word[i];
+ }
+ charBuf[length] = 0;
+ LOGI("[ %s ]", charBuf);
+}
+
#else // FLAG_DBG
#define DEBUG_DICT false
#define DEBUG_DICT_FULL false
+#define DEBUG_EDIT_DISTANCE false
#define DEBUG_SHOW_FOUND_WORD false
#define DEBUG_NODE false
#define DEBUG_TRACE false
#define DEBUG_PROXIMITY_INFO false
+#define DUMP_WORD(word, length)
+
#endif // FLAG_DBG
#ifndef U_SHORT_MAX