Home
last modified time | relevance | path

Searched refs:confidence (Results 1 – 25 of 129) sorted by relevance

123456

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_Unicode.java40 static int adjustConfidence(int codeUnit, int confidence) { in adjustConfidence() argument
42 confidence -= 10; in adjustConfidence()
44 confidence += 10; in adjustConfidence()
46 if (confidence < 0) { in adjustConfidence()
47 confidence = 0; in adjustConfidence()
48 } else if (confidence > 100) { in adjustConfidence()
49 confidence = 100; in adjustConfidence()
51 return confidence; in adjustConfidence()
66 int confidence = 10; in match() local
72 confidence = 100; in match()
[all …]
DCharsetRecog_sbcs.java432 int confidence = match(det, ngl.fNGrams, byteMap); in match() local
433 if (confidence > bestConfidenceSoFar) { in match()
434 bestConfidenceSoFar = confidence; in match()
529 int confidence = match(det, ngl.fNGrams, byteMap); in match() local
530 if (confidence > bestConfidenceSoFar) { in match()
531 bestConfidenceSoFar = confidence; in match()
609 int confidence = match(det, ngrams, byteMap); in match() local
610 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
676 int confidence = match(det, ngrams, byteMap); in match() local
677 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
[all …]
DCharsetRecog_mbcs.java55 int confidence = 0; in match() local
90 confidence = 0; in match()
95 confidence = 10; in match()
106 confidence = 0; in match()
114 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match()
115 if (confidence > 100) { in match()
116 confidence = 100; in match()
124 confidence = (int)(Math.log(commonCharCount+1) * scaleFactor + 10); in match()
125 confidence = Math.min(confidence, 100); in match()
129 return confidence; in match()
[all …]
DCharsetRecog_UTF8.java32 int confidence; in match() local
78 confidence = 0; in match()
80 confidence = 100; in match()
82 confidence = 80; in match()
84 confidence = 100; in match()
86 confidence = 80; in match()
91 confidence = 15; in match()
94 confidence = 25; in match()
96 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DCharsetRecog_Unicode.java41 static int adjustConfidence(int codeUnit, int confidence) { in adjustConfidence() argument
43 confidence -= 10; in adjustConfidence()
45 confidence += 10; in adjustConfidence()
47 if (confidence < 0) { in adjustConfidence()
48 confidence = 0; in adjustConfidence()
49 } else if (confidence > 100) { in adjustConfidence()
50 confidence = 100; in adjustConfidence()
52 return confidence; in adjustConfidence()
67 int confidence = 10; in match() local
73 confidence = 100; in match()
[all …]
DCharsetRecog_sbcs.java433 int confidence = match(det, ngl.fNGrams, byteMap); in match() local
434 if (confidence > bestConfidenceSoFar) { in match()
435 bestConfidenceSoFar = confidence; in match()
530 int confidence = match(det, ngl.fNGrams, byteMap); in match() local
531 if (confidence > bestConfidenceSoFar) { in match()
532 bestConfidenceSoFar = confidence; in match()
610 int confidence = match(det, ngrams, byteMap); in match() local
611 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
677 int confidence = match(det, ngrams, byteMap); in match() local
678 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
[all …]
DCharsetRecog_mbcs.java56 int confidence = 0; in match() local
91 confidence = 0; in match()
96 confidence = 10; in match()
107 confidence = 0; in match()
115 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match()
116 if (confidence > 100) { in match()
117 confidence = 100; in match()
125 confidence = (int)(Math.log(commonCharCount+1) * scaleFactor + 10); in match()
126 confidence = Math.min(confidence, 100); in match()
130 return confidence; in match()
[all …]
DCharsetRecog_UTF8.java33 int confidence; in match() local
79 confidence = 0; in match()
81 confidence = 100; in match()
83 confidence = 80; in match()
85 confidence = 100; in match()
87 confidence = 80; in match()
92 confidence = 15; in match()
95 confidence = 25; in match()
97 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_2022.java124 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match() local
125 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
141 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match() local
142 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
168 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match() local
169 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
/third_party/skia/third_party/externals/icu/source/i18n/
Dcsrucode.cpp40 static int32_t adjustConfidence(UChar codeUnit, int32_t confidence) { in adjustConfidence() argument
42 confidence -= 10; in adjustConfidence()
44 confidence += 10; in adjustConfidence()
46 if (confidence < 0) { in adjustConfidence()
47 confidence = 0; in adjustConfidence()
48 } else if (confidence > 100) { in adjustConfidence()
49 confidence = 100; in adjustConfidence()
51 return confidence; in adjustConfidence()
58 int32_t confidence = 10; in match() local
65 confidence = 100; in match()
[all …]
Dcsrsbcs.cpp899 int32_t confidence = match_sbcs(textIn, ngrams, charMap_8859_1); in match() local
900 if (confidence > bestConfidenceSoFar) { in match()
901 results->set(textIn, this, confidence, name, lang); in match()
902 bestConfidenceSoFar = confidence; in match()
926 int32_t confidence = match_sbcs(textIn, ngrams, charMap_8859_2); in match() local
927 if (confidence > bestConfidenceSoFar) { in match()
928 results->set(textIn, this, confidence, name, lang); in match()
929 bestConfidenceSoFar = confidence; in match()
963 int32_t confidence = match_sbcs(textIn, ngrams_8859_5_ru, charMap_8859_5); in match() local
964 results->set(textIn, this, confidence); in match()
[all …]
Dcsrmbcs.cpp154 int32_t confidence = 0; in match_mbcs() local
180 return confidence; in match_mbcs()
190 confidence = 0; in match_mbcs()
195 confidence = 10; in match_mbcs()
198 return confidence; in match_mbcs()
206 confidence = 0; in match_mbcs()
208 return confidence; in match_mbcs()
215 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match_mbcs()
217 if (confidence > 100) { in match_mbcs()
218 confidence = 100; in match_mbcs()
[all …]
Dcsrutf8.cpp36 int32_t confidence; in match() local
88 confidence = 0; in match()
90 confidence = 100; in match()
92 confidence = 80; in match()
94 confidence = 100; in match()
96 confidence = 80; in match()
100 confidence = 15; in match()
103 confidence = 25; in match()
106 results->set(input, this, confidence); in match()
107 return (confidence > 0); in match()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dcsrucode.cpp40 static int32_t adjustConfidence(UChar codeUnit, int32_t confidence) { in adjustConfidence() argument
42 confidence -= 10; in adjustConfidence()
44 confidence += 10; in adjustConfidence()
46 if (confidence < 0) { in adjustConfidence()
47 confidence = 0; in adjustConfidence()
48 } else if (confidence > 100) { in adjustConfidence()
49 confidence = 100; in adjustConfidence()
51 return confidence; in adjustConfidence()
58 int32_t confidence = 10; in match() local
65 confidence = 100; in match()
[all …]
Dcsrsbcs.cpp899 int32_t confidence = match_sbcs(textIn, ngrams, charMap_8859_1); in match() local
900 if (confidence > bestConfidenceSoFar) { in match()
901 results->set(textIn, this, confidence, name, lang); in match()
902 bestConfidenceSoFar = confidence; in match()
926 int32_t confidence = match_sbcs(textIn, ngrams, charMap_8859_2); in match() local
927 if (confidence > bestConfidenceSoFar) { in match()
928 results->set(textIn, this, confidence, name, lang); in match()
929 bestConfidenceSoFar = confidence; in match()
963 int32_t confidence = match_sbcs(textIn, ngrams_8859_5_ru, charMap_8859_5); in match() local
964 results->set(textIn, this, confidence); in match()
[all …]
Dcsrmbcs.cpp154 int32_t confidence = 0; in match_mbcs() local
180 return confidence; in match_mbcs()
190 confidence = 0; in match_mbcs()
195 confidence = 10; in match_mbcs()
198 return confidence; in match_mbcs()
206 confidence = 0; in match_mbcs()
208 return confidence; in match_mbcs()
215 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match_mbcs()
217 if (confidence > 100) { in match_mbcs()
218 confidence = 100; in match_mbcs()
[all …]
Dcsrutf8.cpp36 int32_t confidence; in match() local
88 confidence = 0; in match()
90 confidence = 100; in match()
92 confidence = 80; in match()
94 confidence = 100; in match()
96 confidence = 80; in match()
100 confidence = 15; in match()
103 confidence = 25; in match()
106 results->set(input, this, confidence); in match()
107 return (confidence > 0); in match()
/third_party/icu/icu4c/source/i18n/
Dcsrucode.cpp40 static int32_t adjustConfidence(UChar codeUnit, int32_t confidence) { in adjustConfidence() argument
42 confidence -= 10; in adjustConfidence()
44 confidence += 10; in adjustConfidence()
46 if (confidence < 0) { in adjustConfidence()
47 confidence = 0; in adjustConfidence()
48 } else if (confidence > 100) { in adjustConfidence()
49 confidence = 100; in adjustConfidence()
51 return confidence; in adjustConfidence()
58 int32_t confidence = 10; in match() local
65 confidence = 100; in match()
[all …]
Dcsrsbcs.cpp899 int32_t confidence = match_sbcs(textIn, ngrams, charMap_8859_1); in match() local
900 if (confidence > bestConfidenceSoFar) { in match()
901 results->set(textIn, this, confidence, name, lang); in match()
902 bestConfidenceSoFar = confidence; in match()
926 int32_t confidence = match_sbcs(textIn, ngrams, charMap_8859_2); in match() local
927 if (confidence > bestConfidenceSoFar) { in match()
928 results->set(textIn, this, confidence, name, lang); in match()
929 bestConfidenceSoFar = confidence; in match()
963 int32_t confidence = match_sbcs(textIn, ngrams_8859_5_ru, charMap_8859_5); in match() local
964 results->set(textIn, this, confidence); in match()
[all …]
Dcsrmbcs.cpp154 int32_t confidence = 0; in match_mbcs() local
180 return confidence; in match_mbcs()
190 confidence = 0; in match_mbcs()
195 confidence = 10; in match_mbcs()
198 return confidence; in match_mbcs()
206 confidence = 0; in match_mbcs()
208 return confidence; in match_mbcs()
215 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match_mbcs()
217 if (confidence > 100) { in match_mbcs()
218 confidence = 100; in match_mbcs()
[all …]
Dcsrutf8.cpp36 int32_t confidence; in match() local
88 confidence = 0; in match()
90 confidence = 100; in match()
92 confidence = 80; in match()
94 confidence = 100; in match()
96 confidence = 80; in match()
100 confidence = 15; in match()
103 confidence = 25; in match()
106 results->set(input, this, confidence); in match()
107 return (confidence > 0); in match()
/third_party/node/deps/icu-small/source/i18n/
Dcsrucode.cpp40 static int32_t adjustConfidence(UChar codeUnit, int32_t confidence) { in adjustConfidence() argument
42 confidence -= 10; in adjustConfidence()
44 confidence += 10; in adjustConfidence()
46 if (confidence < 0) { in adjustConfidence()
47 confidence = 0; in adjustConfidence()
48 } else if (confidence > 100) { in adjustConfidence()
49 confidence = 100; in adjustConfidence()
51 return confidence; in adjustConfidence()
58 int32_t confidence = 10; in match() local
65 confidence = 100; in match()
[all …]
Dcsrsbcs.cpp899 int32_t confidence = match_sbcs(textIn, ngrams, charMap_8859_1); in match() local
900 if (confidence > bestConfidenceSoFar) { in match()
901 results->set(textIn, this, confidence, name, lang); in match()
902 bestConfidenceSoFar = confidence; in match()
926 int32_t confidence = match_sbcs(textIn, ngrams, charMap_8859_2); in match() local
927 if (confidence > bestConfidenceSoFar) { in match()
928 results->set(textIn, this, confidence, name, lang); in match()
929 bestConfidenceSoFar = confidence; in match()
963 int32_t confidence = match_sbcs(textIn, ngrams_8859_5_ru, charMap_8859_5); in match() local
964 results->set(textIn, this, confidence); in match()
[all …]
Dcsrmbcs.cpp154 int32_t confidence = 0; in match_mbcs() local
180 return confidence; in match_mbcs()
190 confidence = 0; in match_mbcs()
195 confidence = 10; in match_mbcs()
198 return confidence; in match_mbcs()
206 confidence = 0; in match_mbcs()
208 return confidence; in match_mbcs()
215 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match_mbcs()
217 if (confidence > 100) { in match_mbcs()
218 confidence = 100; in match_mbcs()
[all …]
Dcsrutf8.cpp36 int32_t confidence; in match() local
88 confidence = 0; in match()
90 confidence = 100; in match()
92 confidence = 80; in match()
94 confidence = 100; in match()
96 confidence = 80; in match()
100 confidence = 15; in match()
103 confidence = 25; in match()
106 results->set(input, this, confidence); in match()
107 return (confidence > 0); in match()

123456