diff options
author | 2012-03-26 02:17:12 -0700 | |
---|---|---|
committer | 2012-03-26 02:17:12 -0700 | |
commit | 94a2ac68e6a736f941a89d6fd70b98a88e6be282 (patch) | |
tree | e9459edabfc3736e480dcd18ecd773c28219c359 | |
parent | d2cd3d54f97fb52adb37912f0338262e5e214846 (diff) | |
parent | aeda8a7798fa1a028998cf4c81397de8a06610a9 (diff) | |
download | latinime-94a2ac68e6a736f941a89d6fd70b98a88e6be282.tar.gz latinime-94a2ac68e6a736f941a89d6fd70b98a88e6be282.tar.xz latinime-94a2ac68e6a736f941a89d6fd70b98a88e6be282.zip |
Merge "Change the first character check in bigram dictionary to be case insensitive."
-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++; |