Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94a2ac68 authored by Tom Ouyang's avatar Tom Ouyang Committed by Android (Google) Code Review
Browse files

Merge "Change the first character check in bigram dictionary to be case insensitive."

parents d2cd3d54 aeda8a77
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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++;