diff options
author | 2010-04-21 02:35:47 +0900 | |
---|---|---|
committer | 2010-04-21 22:43:17 +0900 | |
commit | 707505ec18dcbd057f8ac4b2b82ddd2bbbe3a371 (patch) | |
tree | cabde22d0a2a6436089480759e5428bc40ccccdc /native/src/dictionary.cpp | |
parent | 857cde9007072caf916c77edacc6543738374d54 (diff) | |
download | latinime-707505ec18dcbd057f8ac4b2b82ddd2bbbe3a371.tar.gz latinime-707505ec18dcbd057f8ac4b2b82ddd2bbbe3a371.tar.xz latinime-707505ec18dcbd057f8ac4b2b82ddd2bbbe3a371.zip |
A part of efforts of unbundling LatinIME: Get rid of ICU dependency in the native code.
This is actually a back merge from the LatinIME sandbox. Please refer to
http://arvarest.i.corp.google.com:8080/#change,77
Change-Id: I3ff3781903d5c642c662c2d744f808be7e4d8997
Diffstat (limited to 'native/src/dictionary.cpp')
-rw-r--r-- | native/src/dictionary.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/native/src/dictionary.cpp b/native/src/dictionary.cpp index 6e6f44182..3f196a9ed 100644 --- a/native/src/dictionary.cpp +++ b/native/src/dictionary.cpp @@ -21,8 +21,6 @@ #include <string.h> #include <cutils/log.h> -#include <unicode/uchar.h> - //#define USE_ASSET_MANAGER #ifdef USE_ASSET_MANAGER @@ -32,6 +30,7 @@ #include "dictionary.h" #include "basechars.h" +#include "char_utils.h" #define DEBUG_DICT 0 @@ -176,7 +175,7 @@ Dictionary::toLowerCase(unsigned short c) { if (c >='A' && c <= 'Z') { c |= 32; } else if (c > 127) { - c = u_tolower(c); + c = latin_tolower(c); } return c; } |