Lines Matching refs:confidence
153 int32_t confidence = 0; in match_mbcs() local
179 return confidence; in match_mbcs()
189 confidence = 0; in match_mbcs()
194 confidence = 10; in match_mbcs()
197 return confidence; in match_mbcs()
205 confidence = 0; in match_mbcs()
207 return confidence; in match_mbcs()
214 confidence = 30 + doubleByteCharCount - 20*badCharCount; in match_mbcs()
216 if (confidence > 100) { in match_mbcs()
217 confidence = 100; in match_mbcs()
226 confidence = (int32_t)(log((double)commonCharCount+1) * scaleFactor + 10.0); in match_mbcs()
228 confidence = min(confidence, 100); in match_mbcs()
231 if (confidence < 0) { in match_mbcs()
232 confidence = 0; in match_mbcs()
235 return confidence; in match_mbcs()
272 int32_t confidence = match_mbcs(det, commonChars_sjis, ARRAY_SIZE(commonChars_sjis)); in match() local
273 results->set(det, this, confidence); in match()
274 return (confidence > 0); in match()
373 int32_t confidence = match_mbcs(det, commonChars_euc_jp, ARRAY_SIZE(commonChars_euc_jp)); in match() local
374 results->set(det, this, confidence); in match()
375 return (confidence > 0); in match()
395 int32_t confidence = match_mbcs(det, commonChars_euc_kr, ARRAY_SIZE(commonChars_euc_kr)); in match() local
396 results->set(det, this, confidence); in match()
397 return (confidence > 0); in match()
447 int32_t confidence = match_mbcs(det, commonChars_big5, ARRAY_SIZE(commonChars_big5)); in match() local
448 results->set(det, this, confidence); in match()
449 return (confidence > 0); in match()
523 int32_t confidence = match_mbcs(det, commonChars_gb_18030, ARRAY_SIZE(commonChars_gb_18030)); in match() local
524 results->set(det, this, confidence); in match()
525 return (confidence > 0); in match()