LatinToLocal optimization

This commit is contained in:
Ianos Gnatiuc 2005-10-31 12:55:02 +00:00
parent 4b3e5d0df1
commit 19274603a9

View File

@ -1706,22 +1706,13 @@ void Latin2Local(char *str)
xch = CFG->latintolocal[chr]; xch = CFG->latintolocal[chr];
if (xch && (xch != chr)) if (xch && (xch != chr))
{
left = j ? str[j-1] : 0;
right = str[j+1];
if (((left >= 0x80) && (toupper(left) != tolower(left))) ||
((right >= 0x80) && (toupper(right) != tolower(right))))
{
str[j] = xch; str[j] = xch;
}
else else
break; break;
} }
} }
} }
} }
}
} }