diff options
author | 2011-08-15 01:30:23 -0700 | |
---|---|---|
committer | 2011-08-15 01:30:23 -0700 | |
commit | 77838275ca443f7a2ff899b3842c681338ad8e25 (patch) | |
tree | ac752d8f2f57da8df9f149e03fd722142c318920 /native/src/defines.h | |
parent | 7674f869dc02053ec36ba52ba9d624439def5cdd (diff) | |
parent | 0cedd2bcc3efcec30ea542ceb8d9161afa764a62 (diff) | |
download | latinime-77838275ca443f7a2ff899b3842c681338ad8e25.tar.gz latinime-77838275ca443f7a2ff899b3842c681338ad8e25.tar.xz latinime-77838275ca443f7a2ff899b3842c681338ad8e25.zip |
Merge "Combilne normal correction and skip correction"
Diffstat (limited to 'native/src/defines.h')
-rw-r--r-- | native/src/defines.h | 16 |
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 |