diff options
author | 2010-04-20 01:24:57 +0900 | |
---|---|---|
committer | 2010-04-20 17:55:53 +0900 | |
commit | 07cab72ce4b82ad8cc879c2787da0f21a193e38c (patch) | |
tree | 23543a4fa05d74924d1989502c08eac7990fe8ac /native/src/dictionary.cpp | |
parent | 19266dc860a9ff780be4d0ec1b68e23e93980c55 (diff) | |
download | latinime-07cab72ce4b82ad8cc879c2787da0f21a193e38c.tar.gz latinime-07cab72ce4b82ad8cc879c2787da0f21a193e38c.tar.xz latinime-07cab72ce4b82ad8cc879c2787da0f21a193e38c.zip |
Fix the sandbox build & get rid of ICU dependency.
Changed package name from com.android.inputmethod.latin2 to com.google.android.inputmethod.latin2.
Copied LatinIME's current dictionaries from master's vendor directory.
Confirmed latin_tolower() function returns the result identical to ICU's u_tolower().
- Note that I will merge the ICU dependency removal change to master.
Change-Id: Ia85bd3e88ce5159934684e2228d8b0c5a8885296
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; } |