Home
last modified time | relevance | path

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

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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()
/third_party/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()
/third_party/node/deps/icu-small/source/i18n/
Dcsrmbcs.cpp151 int32_t badCharCount = 0; in match_mbcs() local
160 badCharCount++; in match_mbcs()
174 if (badCharCount >= 2 && badCharCount*5 >= doubleByteCharCount) { in match_mbcs()
181 if (doubleByteCharCount <= 10 && badCharCount == 0) { in match_mbcs()
202 if (doubleByteCharCount < 20*badCharCount) { in match_mbcs()
212 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match_mbcs()
/third_party/icu/icu4c/source/i18n/
Dcsrmbcs.cpp151 int32_t badCharCount = 0; in match_mbcs() local
160 badCharCount++; in match_mbcs()
174 if (badCharCount >= 2 && badCharCount*5 >= doubleByteCharCount) { in match_mbcs()
181 if (doubleByteCharCount <= 10 && badCharCount == 0) { in match_mbcs()
202 if (doubleByteCharCount < 20*badCharCount) { in match_mbcs()
212 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match_mbcs()
/third_party/skia/third_party/externals/icu/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()