Home
last modified time | relevance | path

Searched refs:badCharCount (Results 1 – 3 of 3) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_mbcs.java54 int badCharCount = 0; in match() local
63 badCharCount++; in match()
79 if (badCharCount >= 2 && badCharCount*5 >= doubleByteCharCount) { in match()
85 if (doubleByteCharCount <= 10 && badCharCount== 0) { in match()
106 if (doubleByteCharCount < 20*badCharCount) { in match()
115 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_mbcs.java53 int badCharCount = 0; in match() local
62 badCharCount++; in match()
78 if (badCharCount >= 2 && badCharCount*5 >= doubleByteCharCount) { in match()
84 if (doubleByteCharCount <= 10 && badCharCount== 0) { in match()
105 if (doubleByteCharCount < 20*badCharCount) { in match()
114 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match()
/external/icu/icu4c/source/i18n/
Dcsrmbcs.cpp152 int32_t badCharCount = 0; in match_mbcs() local
161 badCharCount++; in match_mbcs()
177 if (badCharCount >= 2 && badCharCount*5 >= doubleByteCharCount) { in match_mbcs()
184 if (doubleByteCharCount <= 10 && badCharCount == 0) { in match_mbcs()
205 if (doubleByteCharCount < 20*badCharCount) { in match_mbcs()
215 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match_mbcs()