diff options
author | 2012-03-24 15:31:27 +0900 | |
---|---|---|
committer | 2012-03-24 15:31:27 +0900 | |
commit | aeda8a7798fa1a028998cf4c81397de8a06610a9 (patch) | |
tree | 277dde1260c12b281a3a62d602e3235aa6861ac2 /native/src/bigram_dictionary.cpp | |
parent | fce9ca420234302fae859ef5c857fcf5b82f9218 (diff) | |
download | latinime-aeda8a7798fa1a028998cf4c81397de8a06610a9.tar.gz latinime-aeda8a7798fa1a028998cf4c81397de8a06610a9.tar.xz latinime-aeda8a7798fa1a028998cf4c81397de8a06610a9.zip |
Change the first character check in bigram dictionary to be case insensitive.
Bug: 6188977
Change-Id: I121c1abf245c7f8734730810c07d3351b1ec581a
Diffstat (limited to 'native/src/bigram_dictionary.cpp')
-rw-r--r-- | native/src/bigram_dictionary.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/native/src/bigram_dictionary.cpp b/native/src/bigram_dictionary.cpp index fa69de854..3704c47e6 100644 --- a/native/src/bigram_dictionary.cpp +++ b/native/src/bigram_dictionary.cpp @@ -151,8 +151,9 @@ bool BigramDictionary::checkFirstCharacter(unsigned short *word) { int *inputCodes = mInputCodes; int maxAlt = MAX_ALTERNATIVES; + const unsigned short firstBaseChar = toBaseLowerCase(*word); while (maxAlt > 0) { - if ((unsigned int) *inputCodes == (unsigned int) *word) { + if (toBaseLowerCase(*inputCodes) == firstBaseChar) { return true; } inputCodes++; |