Lines Matching refs:confidence

38 static int32_t adjustConfidence(UChar codeUnit, int32_t confidence) {  in adjustConfidence()  argument
40 confidence -= 10; in adjustConfidence()
42 confidence += 10; in adjustConfidence()
44 if (confidence < 0) { in adjustConfidence()
45 confidence = 0; in adjustConfidence()
46 } else if (confidence > 100) { in adjustConfidence()
47 confidence = 100; in adjustConfidence()
49 return confidence; in adjustConfidence()
56 int32_t confidence = 10; in match() local
63 confidence = 100; in match()
66 confidence = adjustConfidence(codeUnit, confidence); in match()
67 if (confidence == 0 || confidence == 100) { in match()
71 if (bytesToCheck < 4 && confidence < 100) { in match()
72 confidence = 0; in match()
74 results->set(textIn, this, confidence); in match()
75 return (confidence > 0); in match()
91 int32_t confidence = 10; in match() local
98 confidence = 100; // UTF-16 BOM in match()
100 confidence = 0; // UTF-32 BOM in match()
104 confidence = adjustConfidence(codeUnit, confidence); in match()
105 if (confidence == 0 || confidence == 100) { in match()
109 if (bytesToCheck < 4 && confidence < 100) { in match()
110 confidence = 0; in match()
112 results->set(textIn, this, confidence); in match()
113 return (confidence > 0); in match()
128 int32_t confidence = 0; in match() local
148 confidence = 100; in match()
150 confidence = 80; in match()
152 confidence = 100; in match()
154 confidence = 80; in match()
157 confidence = 25; in match()
160 results->set(textIn, this, confidence); in match()
161 return (confidence > 0); in match()