Refactor skippable code point

Change-Id: I5477b6e5d29d1f0b9c2fd5a495be77cf5f2fbaee
main
Satoshi Kataoka 2013-03-13 19:04:16 +09:00
parent 601a8582d0
commit cbb816d1b0
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ AK_FORCE_INLINE static int toBaseLowerCase(const int c) {
return toLowerCase(toBaseCodePoint(c));
}
inline static bool isSkippableCodePoint(const int codePoint) {
inline static bool isIntentionalOmissionCodePoint(const int codePoint) {
// TODO: Do not hardcode here
return codePoint == KEYCODE_SINGLE_QUOTE || codePoint == KEYCODE_HYPHEN_MINUS;
}

View File

@ -165,7 +165,7 @@ float ProximityInfoState::getPointToKeyLength(
const int index = inputIndex * mProximityInfo->getKeyCount() + keyId;
return min(mSampledDistanceCache_G[index], mMaxPointToKeyLength);
}
if (isSkippableCodePoint(codePoint)) {
if (isIntentionalOmissionCodePoint(codePoint)) {
return 0.0f;
}
// If the char is not a key on the keyboard then return the max length.