diff options
author | 2011-02-25 17:56:53 +0900 | |
---|---|---|
committer | 2011-03-03 11:52:23 +0900 | |
commit | c2bbc6a4499a6da979381fa0e8e6e855a5ac6aa4 (patch) | |
tree | 11a87dc05035a76aa4e9f95095cbbf8b67ea3e20 /native/src/debug.h | |
parent | e59491460b0411bed430a5ca6eca0c56c5bf18d9 (diff) | |
download | latinime-c2bbc6a4499a6da979381fa0e8e6e855a5ac6aa4.tar.gz latinime-c2bbc6a4499a6da979381fa0e8e6e855a5ac6aa4.tar.xz latinime-c2bbc6a4499a6da979381fa0e8e6e855a5ac6aa4.zip |
Use translation of fallback umlauts digraphs for German.
For German : handle "ae", "oe" and "ue" to be alternate forms for
umlaut-bearing versions of "a", "o" and "u".
Issue: 3275926
Change-Id: I056c707cdacc464ceab63be56c016c7f8439196c
Diffstat (limited to 'native/src/debug.h')
-rw-r--r-- | native/src/debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/native/src/debug.h b/native/src/debug.h index e5572e1a5..ae629b222 100644 --- a/native/src/debug.h +++ b/native/src/debug.h @@ -55,4 +55,15 @@ static inline void LOGI_S16_PLUS(unsigned short* string, const unsigned int leng // usleep(10); } +static inline void printDebug(const char* tag, int* codes, int codesSize, int MAX_PROXIMITY_CHARS) { + unsigned char *buf = (unsigned char*)malloc((1 + codesSize) * sizeof(*buf)); + + buf[codesSize] = 0; + while (--codesSize >= 0) + buf[codesSize] = (unsigned char)codes[codesSize * MAX_PROXIMITY_CHARS]; + LOGI("%s, WORD = %s", tag, buf); + + free(buf); +} + #endif // LATINIME_DEBUG_H |