LatinToLocal optimization
This commit is contained in:
parent
4b3e5d0df1
commit
19274603a9
@ -1706,18 +1706,9 @@ void Latin2Local(char *str)
|
|||||||
xch = CFG->latintolocal[chr];
|
xch = CFG->latintolocal[chr];
|
||||||
|
|
||||||
if (xch && (xch != chr))
|
if (xch && (xch != chr))
|
||||||
{
|
str[j] = xch;
|
||||||
left = j ? str[j-1] : 0;
|
else
|
||||||
right = str[j+1];
|
break;
|
||||||
|
|
||||||
if (((left >= 0x80) && (toupper(left) != tolower(left))) ||
|
|
||||||
((right >= 0x80) && (toupper(right) != tolower(right))))
|
|
||||||
{
|
|
||||||
str[j] = xch;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user