Merge "Change the first character check in bigram dictionary to be case insensitive."
This commit is contained in:
commit
94a2ac68e6
1 changed files with 2 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue