Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_mbcs.java52 int doubleByteCharCount = 0; in match() local
70 doubleByteCharCount++; in match()
79 if (badCharCount >= 2 && badCharCount*5 >= doubleByteCharCount) { in match()
85 if (doubleByteCharCount <= 10 && badCharCount== 0) { in match()
87 if (doubleByteCharCount == 0 && totalCharCount < 10) { in match()
106 if (doubleByteCharCount < 20*badCharCount) { in match()
115 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match()
123 double maxVal = Math.log((float)doubleByteCharCount / 4); in match()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_mbcs.java51 int doubleByteCharCount = 0; in match() local
69 doubleByteCharCount++; in match()
78 if (badCharCount >= 2 && badCharCount*5 >= doubleByteCharCount) { in match()
84 if (doubleByteCharCount <= 10 && badCharCount== 0) { in match()
86 if (doubleByteCharCount == 0 && totalCharCount < 10) { in match()
105 if (doubleByteCharCount < 20*badCharCount) { in match()
114 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match()
122 double maxVal = Math.log((float)doubleByteCharCount / 4); in match()
/external/icu/icu4c/source/i18n/
Dcsrmbcs.cpp150 int32_t doubleByteCharCount = 0; in match_mbcs() local
166 doubleByteCharCount++; in match_mbcs()
177 if (badCharCount >= 2 && badCharCount*5 >= doubleByteCharCount) { in match_mbcs()
184 if (doubleByteCharCount <= 10 && badCharCount == 0) { in match_mbcs()
186 if (doubleByteCharCount == 0 && totalCharCount < 10) { in match_mbcs()
205 if (doubleByteCharCount < 20*badCharCount) { in match_mbcs()
215 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match_mbcs()
225 double maxVal = log((double)doubleByteCharCount / 4); /*(float)?*/ in match_mbcs()