Searched refs:CharsetMatch (Results 1 - 25 of 35) sorted by relevance

12

/external/icu/icu4c/source/i18n/
H A Dcsmatch.cpp23 CharsetMatch::CharsetMatch() function in class:CharsetMatch
29 void CharsetMatch::set(InputText *input, const CharsetRecognizer *cr, int32_t conf,
46 const char* CharsetMatch::getName()const
51 const char* CharsetMatch::getLanguage()const
56 int32_t CharsetMatch::getConfidence()const
61 int32_t CharsetMatch::getUChars(UChar *buf, int32_t cap, UErrorCode *status) const
H A Dcsrecog.h21 class CharsetMatch;
49 virtual UBool match(InputText *textIn, CharsetMatch *results) const = 0;
H A Dcsdetect.h23 class CharsetMatch;
29 CharsetMatch **resultArray;
46 const CharsetMatch * const *detectAll(int32_t &maxMatchesFound, UErrorCode &status);
48 const CharsetMatch *detect(UErrorCode& status);
H A Dcsr2022.h21 class CharsetMatch;
67 UBool match(InputText *textIn, CharsetMatch *results) const;
77 UBool match(InputText *textIn, CharsetMatch *results) const;
88 UBool match(InputText *textIn, CharsetMatch *results) const;
H A Dcsrutf8.h37 UBool match(InputText *input, CharsetMatch *results) const;
H A Dcsmatch.h23 * CharsetMatch represents the results produced by one Charset Recognizer for one input text
28 * CharsetMatch objects, each representing a possible matching charset.
33 class CharsetMatch : public UMemory class in inherits:UMemory
42 CharsetMatch();
45 * fully set the state of this CharsetMatch.
H A Dcsrsbcs.h78 virtual UBool match(InputText *det, CharsetMatch *results) const = 0;
87 virtual UBool match(InputText *det, CharsetMatch *results) const;
95 virtual UBool match(InputText *det, CharsetMatch *results) const;
146 virtual UBool match(InputText *det, CharsetMatch *results) const;
156 virtual UBool match(InputText *det, CharsetMatch *results) const;
166 virtual UBool match(InputText *det, CharsetMatch *results) const;
178 virtual UBool match(InputText *det, CharsetMatch *results) const;
188 virtual UBool match(InputText *det, CharsetMatch *results) const;
198 virtual UBool match(InputText *det, CharsetMatch *results) const;
210 virtual UBool match(InputText *det, CharsetMatch *result
[all...]
H A Dcsrucode.h41 UBool match(InputText* textIn, CharsetMatch *results) const = 0;
53 UBool match(InputText* textIn, CharsetMatch *results) const;
64 UBool match(InputText* textIn, CharsetMatch *results) const;
77 UBool match(InputText* textIn, CharsetMatch *results) const;
H A Dcsrmbcs.h76 UBool match(InputText* input, CharsetMatch *results) const = 0;
105 UBool match(InputText* input, CharsetMatch *results) const;
127 UBool match(InputText* input, CharsetMatch *results) const = 0;
149 UBool match(InputText* input, CharsetMatch *results) const;
164 UBool match(InputText* input, CharsetMatch *results) const;
182 UBool match(InputText* input, CharsetMatch *results) const;
201 UBool match(InputText* input, CharsetMatch *results) const;
H A Ducsdet.cpp72 return ((CharsetMatch *) ucsm)->getName();
82 return ((CharsetMatch *) ucsm)->getConfidence();
92 return ((CharsetMatch *) ucsm)->getLanguage();
181 return ((CharsetMatch *) ucsm)->getUChars(buf, cap, status);
/external/icu/android_icu4j/src/main/java/android/icu/text/
H A DCharsetRecognizer.java48 * @return A CharsetMatch object containing details of match
51 abstract CharsetMatch match(CharsetDetector det);
H A DCharsetRecog_2022.java123 CharsetMatch match(CharsetDetector det) {
125 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
140 CharsetMatch match(CharsetDetector det) {
142 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
167 CharsetMatch match(CharsetDetector det) {
169 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
H A DCharsetMatch.java32 public class CharsetMatch implements Comparable<CharsetMatch> { class in inherits:Comparable
157 * Compare to other CharsetMatch objects.
161 * @param other the CharsetMatch object to compare against.
163 * confidence level of this CharsetMatch
166 * @throws ClassCastException if the argument is not a CharsetMatch.
169 public int compareTo (CharsetMatch other) {
182 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) { method in class:CharsetMatch
187 // recognizer before using this CharsetMatch.
202 CharsetMatch(CharsetDetecto method in class:CharsetMatch
[all...]
H A DCharsetRecog_Unicode.java30 abstract CharsetMatch match(CharsetDetector det);
64 CharsetMatch match(CharsetDetector det)
85 return new CharsetMatch(det, this, confidence);
100 CharsetMatch match(CharsetDetector det)
121 return new CharsetMatch(det, this, confidence);
135 CharsetMatch match(CharsetDetector det)
177 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
H A DCharsetRecog_UTF8.java26 CharsetMatch match(CharsetDetector det) {
97 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
H A DCharsetDetector.java145 * @return a CharsetMatch object representing the best matching charset, or
148 public CharsetMatch detect() {
153 CharsetMatch matches[] = detectAll();
173 * @return An array of CharsetMatch objects representing possibly matching charsets.
175 public CharsetMatch[] detectAll() {
176 ArrayList<CharsetMatch> matches = new ArrayList<CharsetMatch>();
186 CharsetMatch m = rcinfo.recognizer.match(this);
192 Collections.sort(matches); // CharsetMatch compares on confidence
194 CharsetMatch [] resultArra
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DCharsetRecognizer.java47 * @return A CharsetMatch object containing details of match
50 abstract CharsetMatch match(CharsetDetector det);
H A DCharsetMatch.java31 public class CharsetMatch implements Comparable<CharsetMatch> { class in inherits:Comparable
168 * Compare to other CharsetMatch objects.
172 * @param other the CharsetMatch object to compare against.
174 * confidence level of this CharsetMatch
177 * @throws ClassCastException if the argument is not a CharsetMatch.
181 public int compareTo (CharsetMatch other) {
194 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) { method in class:CharsetMatch
199 // recognizer before using this CharsetMatch.
214 CharsetMatch(CharsetDetecto method in class:CharsetMatch
[all...]
H A DCharsetRecog_Unicode.java29 abstract CharsetMatch match(CharsetDetector det);
63 CharsetMatch match(CharsetDetector det)
84 return new CharsetMatch(det, this, confidence);
99 CharsetMatch match(CharsetDetector det)
120 return new CharsetMatch(det, this, confidence);
134 CharsetMatch match(CharsetDetector det)
176 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
H A DCharsetRecog_2022.java122 CharsetMatch match(CharsetDetector det) {
124 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
139 CharsetMatch match(CharsetDetector det) {
141 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
166 CharsetMatch match(CharsetDetector det) {
168 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
H A DCharsetRecog_UTF8.java25 CharsetMatch match(CharsetDetector det) {
96 return confidence == 0 ? null : new CharsetMatch(det, this, confidence);
H A DCharsetDetector.java152 * @return a CharsetMatch object representing the best matching charset, or
157 public CharsetMatch detect() {
162 CharsetMatch matches[] = detectAll();
182 * @return An array of CharsetMatch objects representing possibly matching charsets.
186 public CharsetMatch[] detectAll() {
187 ArrayList<CharsetMatch> matches = new ArrayList<CharsetMatch>();
197 CharsetMatch m = rcinfo.recognizer.match(this);
203 Collections.sort(matches); // CharsetMatch compares on confidence
205 CharsetMatch [] resultArra
[all...]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/
H A DTestCharsetDetector.java36 import android.icu.text.CharsetMatch;
134 CharsetMatch m;
191 CharsetMatch m;
227 CharsetMatch m;
262 CharsetMatch m;
296 CharsetMatch match;
420 CharsetMatch m = det.detect();
509 CharsetMatch m;
545 CharsetMatch m;
663 CharsetMatch
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/
H A DTestCharsetDetector.java35 import com.ibm.icu.text.CharsetMatch;
133 CharsetMatch m;
190 CharsetMatch m;
226 CharsetMatch m;
261 CharsetMatch m;
295 CharsetMatch match;
419 CharsetMatch m = det.detect();
508 CharsetMatch m;
544 CharsetMatch m;
662 CharsetMatch
[all...]
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
H A DDetectingViewer.java43 import com.ibm.icu.text.CharsetMatch;
165 private String encodingName(CharsetMatch match)
170 private void setMatchMenu(CharsetMatch[] matches)
178 CharsetMatch match = matches[i];
268 private CharsetMatch[] detect(byte[] bytes)
277 private CharsetMatch[] detect(BufferedInputStream inputStream)
291 private void show(InputStream inputStream, CharsetMatch[] matches, String title)
361 CharsetMatch[] matches = detect(inputStream);
378 CharsetMatch[] matches = detect(filtered);

Completed in 336 milliseconds

12