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

Commit aeda8a77 authored by Tom Ouyang's avatar Tom Ouyang
Browse files

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

Bug: 6188977
Change-Id: I121c1abf245c7f8734730810c07d3351b1ec581a
parent fce9ca42
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++;