Home
last modified time | relevance | path

Searched refs:CharsetMatch (Results 1 – 25 of 44) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_sbcs.java422 public CharsetMatch match(CharsetDetector det) in match()
434 …return bestConfidenceSoFar <= 0 ? null : new CharsetMatch(det, this, bestConfidenceSoFar, name, la… in match()
517 public CharsetMatch match(CharsetDetector det) in match()
529 …return bestConfidenceSoFar <= 0 ? null : new CharsetMatch(det, this, bestConfidenceSoFar, name, la… in match()
597 public CharsetMatch match(CharsetDetector det) in match()
600 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
661 public CharsetMatch match(CharsetDetector det) in match()
664 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
725 public CharsetMatch match(CharsetDetector det) in match()
729 return confidence == 0 ? null : new CharsetMatch(det, this, confidence, name, "el"); in match()
[all …]
DCharsetRecog_2022.java119 CharsetMatch match(CharsetDetector det) { in match()
121 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
134 CharsetMatch match(CharsetDetector det) { in match()
136 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
159 CharsetMatch match(CharsetDetector det) { in match()
161 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_Unicode.java26 abstract CharsetMatch match(CharsetDetector det); in match()
58 CharsetMatch match(CharsetDetector det) in match()
79 return new CharsetMatch(det, this, confidence); in match()
92 CharsetMatch match(CharsetDetector det) in match()
113 return new CharsetMatch(det, this, confidence); in match()
125 CharsetMatch match(CharsetDetector det) in match()
167 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_mbcs.java225 CharsetMatch match(CharsetDetector det) { in match()
227 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
291 CharsetMatch match(CharsetDetector det) { in match()
293 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
402 CharsetMatch match(CharsetDetector det) { in match()
404 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
437 CharsetMatch match(CharsetDetector det) { in match()
439 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
535 CharsetMatch match(CharsetDetector det) { in match()
537 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetDetector.java146 public CharsetMatch detect() { in detect()
151 CharsetMatch matches[] = detectAll(); in detect()
173 public CharsetMatch[] detectAll() { in detectAll()
174 ArrayList<CharsetMatch> matches = new ArrayList<CharsetMatch>(); in detectAll()
184 CharsetMatch m = rcinfo.recognizer.match(this); in detectAll()
192 CharsetMatch [] resultArray = new CharsetMatch[matches.size()]; in detectAll()
224 CharsetMatch match = detect(); in getReader()
257 CharsetMatch match = detect(); in getString()
DCharsetMatch.java30 public class CharsetMatch implements Comparable<CharsetMatch> { class
166 public int compareTo (CharsetMatch other) { in compareTo()
179 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) { in CharsetMatch() method in CharsetMatch
199 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf, String csName, String lang) { in CharsetMatch() method in CharsetMatch
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_sbcs.java421 public CharsetMatch match(CharsetDetector det) in match()
433 …return bestConfidenceSoFar <= 0 ? null : new CharsetMatch(det, this, bestConfidenceSoFar, name, la… in match()
516 public CharsetMatch match(CharsetDetector det) in match()
528 …return bestConfidenceSoFar <= 0 ? null : new CharsetMatch(det, this, bestConfidenceSoFar, name, la… in match()
596 public CharsetMatch match(CharsetDetector det) in match()
599 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
660 public CharsetMatch match(CharsetDetector det) in match()
663 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
724 public CharsetMatch match(CharsetDetector det) in match()
728 return confidence == 0 ? null : new CharsetMatch(det, this, confidence, name, "el"); in match()
[all …]
DCharsetRecog_2022.java118 CharsetMatch match(CharsetDetector det) { in match()
120 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
133 CharsetMatch match(CharsetDetector det) { in match()
135 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
158 CharsetMatch match(CharsetDetector det) { in match()
160 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_Unicode.java25 abstract CharsetMatch match(CharsetDetector det); in match()
57 CharsetMatch match(CharsetDetector det) in match()
78 return new CharsetMatch(det, this, confidence); in match()
91 CharsetMatch match(CharsetDetector det) in match()
112 return new CharsetMatch(det, this, confidence); in match()
124 CharsetMatch match(CharsetDetector det) in match()
166 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_mbcs.java224 CharsetMatch match(CharsetDetector det) { in match()
226 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
290 CharsetMatch match(CharsetDetector det) { in match()
292 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
401 CharsetMatch match(CharsetDetector det) { in match()
403 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
436 CharsetMatch match(CharsetDetector det) { in match()
438 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
534 CharsetMatch match(CharsetDetector det) { in match()
536 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetDetector.java155 public CharsetMatch detect() { in detect()
160 CharsetMatch matches[] = detectAll(); in detect()
184 public CharsetMatch[] detectAll() { in detectAll()
185 ArrayList<CharsetMatch> matches = new ArrayList<CharsetMatch>(); in detectAll()
195 CharsetMatch m = rcinfo.recognizer.match(this); in detectAll()
203 CharsetMatch [] resultArray = new CharsetMatch[matches.size()]; in detectAll()
237 CharsetMatch match = detect(); in getReader()
272 CharsetMatch match = detect(); in getString()
DCharsetMatch.java29 public class CharsetMatch implements Comparable<CharsetMatch> { class
178 public int compareTo (CharsetMatch other) { in compareTo()
191 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) { in CharsetMatch() method in CharsetMatch
211 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf, String csName, String lang) { in CharsetMatch() method in CharsetMatch
/external/icu/icu4c/source/i18n/
Dcsrsbcs.h76 virtual UBool match(InputText *det, CharsetMatch *results) const = 0;
85 virtual UBool match(InputText *det, CharsetMatch *results) const;
93 virtual UBool match(InputText *det, CharsetMatch *results) const;
144 virtual UBool match(InputText *det, CharsetMatch *results) const;
154 virtual UBool match(InputText *det, CharsetMatch *results) const;
164 virtual UBool match(InputText *det, CharsetMatch *results) const;
176 virtual UBool match(InputText *det, CharsetMatch *results) const;
186 virtual UBool match(InputText *det, CharsetMatch *results) const;
196 virtual UBool match(InputText *det, CharsetMatch *results) const;
208 virtual UBool match(InputText *det, CharsetMatch *results) const;
[all …]
Dcsmatch.cpp21 CharsetMatch::CharsetMatch() in CharsetMatch() function in CharsetMatch
27 void CharsetMatch::set(InputText *input, const CharsetRecognizer *cr, int32_t conf, in set()
44 const char* CharsetMatch::getName()const in getName()
49 const char* CharsetMatch::getLanguage()const in getLanguage()
54 int32_t CharsetMatch::getConfidence()const in getConfidence()
59 int32_t CharsetMatch::getUChars(UChar *buf, int32_t cap, UErrorCode *status) const in getUChars()
Dcsrmbcs.h74 UBool match(InputText* input, CharsetMatch *results) const = 0;
103 UBool match(InputText* input, CharsetMatch *results) const;
125 UBool match(InputText* input, CharsetMatch *results) const = 0;
147 UBool match(InputText* input, CharsetMatch *results) const;
162 UBool match(InputText* input, CharsetMatch *results) const;
180 UBool match(InputText* input, CharsetMatch *results) const;
199 UBool match(InputText* input, CharsetMatch *results) const;
Dcsrsbcs.cpp891 UBool CharsetRecog_8859_1::match(InputText *textIn, CharsetMatch *results) const { in match()
918 UBool CharsetRecog_8859_2::match(InputText *textIn, CharsetMatch *results) const { in match()
960 UBool CharsetRecog_8859_5_ru::match(InputText *textIn, CharsetMatch *results) const in match()
987 UBool CharsetRecog_8859_6_ar::match(InputText *textIn, CharsetMatch *results) const in match()
1014 UBool CharsetRecog_8859_7_el::match(InputText *textIn, CharsetMatch *results) const in match()
1047 UBool CharsetRecog_8859_8_I_he::match(InputText *textIn, CharsetMatch *results) const in match()
1065 UBool CharsetRecog_8859_8_he::match(InputText *textIn, CharsetMatch *results) const in match()
1093 UBool CharsetRecog_8859_9_tr::match(InputText *textIn, CharsetMatch *results) const in match()
1116 UBool CharsetRecog_windows_1256::match(InputText *textIn, CharsetMatch *results) const in match()
1138 UBool CharsetRecog_windows_1251::match(InputText *textIn, CharsetMatch *results) const in match()
[all …]
Dcsr2022.h19 class CharsetMatch; variable
65 UBool match(InputText *textIn, CharsetMatch *results) const;
75 UBool match(InputText *textIn, CharsetMatch *results) const;
86 UBool match(InputText *textIn, CharsetMatch *results) const;
Dcsdetect.h19 class CharsetMatch; variable
25 CharsetMatch **resultArray;
42 const CharsetMatch * const *detectAll(int32_t &maxMatchesFound, UErrorCode &status);
44 const CharsetMatch *detect(UErrorCode& status);
Dcsrucode.h39 UBool match(InputText* textIn, CharsetMatch *results) const = 0;
51 UBool match(InputText* textIn, CharsetMatch *results) const;
62 UBool match(InputText* textIn, CharsetMatch *results) const;
75 UBool match(InputText* textIn, CharsetMatch *results) const;
Dcsdetect.cpp77 const CharsetMatch **csm_l = (const CharsetMatch **) left; in charsetMatchComparator()
78 const CharsetMatch **csm_r = (const CharsetMatch **) right; in charsetMatchComparator()
165 resultArray = (CharsetMatch **)uprv_malloc(sizeof(CharsetMatch *)*fCSRecognizers_size); in CharsetDetector()
173 resultArray[i] = new CharsetMatch(); in CharsetDetector()
230 const CharsetMatch *CharsetDetector::detect(UErrorCode &status) in detect()
243 const CharsetMatch * const *CharsetDetector::detectAll(int32_t &maxMatchesFound, UErrorCode &status) in detectAll()
Ducsdet.cpp72 return ((CharsetMatch *) ucsm)->getName(); in ucsdet_getName()
82 return ((CharsetMatch *) ucsm)->getConfidence(); in ucsdet_getConfidence()
92 return ((CharsetMatch *) ucsm)->getLanguage(); in ucsdet_getLanguage()
181 return ((CharsetMatch *) ucsm)->getUChars(buf, cap, status); in ucsdet_getUChars()
Dcsrecog.h19 class CharsetMatch; variable
47 virtual UBool match(InputText *textIn, CharsetMatch *results) const = 0;
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/
DTestCharsetDetector.java32 import com.ibm.icu.text.CharsetMatch;
144 CharsetMatch m; in TestInputFilter()
199 CharsetMatch m; in TestUTF16()
234 CharsetMatch m; in TestC1Bytes()
268 CharsetMatch m; in TestShortInput()
301 CharsetMatch match; in TestBufferOverflow()
424 CharsetMatch m = det.detect(); in checkMatch()
512 CharsetMatch m; in TestJapanese()
547 CharsetMatch m; in TestArabic()
664 CharsetMatch m = _test1255(s); in TestHebrew()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/
DTestCharsetDetector.java33 import android.icu.text.CharsetMatch;
148 CharsetMatch m; in TestInputFilter()
203 CharsetMatch m; in TestUTF16()
238 CharsetMatch m; in TestC1Bytes()
272 CharsetMatch m; in TestShortInput()
305 CharsetMatch match; in TestBufferOverflow()
428 CharsetMatch m = det.detect(); in checkMatch()
516 CharsetMatch m; in TestJapanese()
551 CharsetMatch m; in TestArabic()
668 CharsetMatch m = _test1255(s); in TestHebrew()
[all …]
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
DDetectingViewer.java41 import com.ibm.icu.text.CharsetMatch;
163 private String encodingName(CharsetMatch match) in encodingName()
168 private void setMatchMenu(CharsetMatch[] matches) in setMatchMenu()
176 CharsetMatch match = matches[i]; in setMatchMenu()
266 private CharsetMatch[] detect(byte[] bytes) in detect()
275 private CharsetMatch[] detect(BufferedInputStream inputStream) in detect()
289 private void show(InputStream inputStream, CharsetMatch[] matches, String title) in show()
359 CharsetMatch[] matches = detect(inputStream); in doOpenFile()
376 CharsetMatch[] matches = detect(filtered); in doOpenURL()

12