/third_party/icu/icu4c/source/i18n/ |
H A D | csrsbcs.h | 48 virtual int32_t nextByte(InputText *det); 49 virtual void parseCharacters(InputText *det); 52 int32_t parse(InputText *det); 66 int32_t nextByte(InputText *det) override; 67 void parseCharacters(InputText *det) override; 78 virtual UBool match(InputText *det, CharsetMatch *results) const override = 0; 79 virtual int32_t match_sbcs(InputText *det, const int32_t ngrams[], const uint8_t charMap[]) const; 87 virtual UBool match(InputText *det, CharsetMatch *results) const override; 95 virtual UBool match(InputText *det, CharsetMatch *results) const override; 146 virtual UBool match(InputText *det, CharsetMatc [all...] |
H A D | csrmbcs.cpp | 132 int32_t IteratedChar::nextByte(InputText *det) in nextByte() argument 134 if (nextIndex >= det->fRawLength) { in nextByte() 140 return det->fRawInput[nextIndex++]; in nextByte() 148 int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars[], int32_t commonCharsLen) const { in match_mbcs() argument 156 while (nextChar(&iter, det)) { in match_mbcs() 241 UBool CharsetRecog_sjis::nextChar(IteratedChar* it, InputText* det) const { in nextChar() 245 int32_t firstByte = it->charValue = it->nextByte(det); in nextChar() 255 int32_t secondByte = it->nextByte(det); in nextChar() 269 UBool CharsetRecog_sjis::match(InputText* det, CharsetMatch *results) const { in match() argument 270 int32_t confidence = match_mbcs(det, commonChars_sji in match() 369 match(InputText *det, CharsetMatch *results) const match() argument 391 match(InputText *det, CharsetMatch *results) const match() argument 443 match(InputText *det, CharsetMatch *results) const match() argument 519 match(InputText *det, CharsetMatch *results) const match() argument [all...] |
H A D | csrmbcs.h | 44 int32_t nextByte(InputText* det); 55 * @param det The CharsetDetector, which contains the input text 63 int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const; 86 * @param det The charset detector, which is needed to get at the input byte data 103 UBool nextChar(IteratedChar *it, InputText *det) const override; 134 UBool nextChar(IteratedChar *it, InputText *det) const override; 177 UBool nextChar(IteratedChar* it, InputText* det) const override; 196 UBool nextChar(IteratedChar* it, InputText* det) const override;
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | csrsbcs.h | 48 virtual int32_t nextByte(InputText *det); 49 virtual void parseCharacters(InputText *det); 52 int32_t parse(InputText *det); 66 int32_t nextByte(InputText *det) override; 67 void parseCharacters(InputText *det) override; 78 virtual UBool match(InputText *det, CharsetMatch *results) const override = 0; 79 virtual int32_t match_sbcs(InputText *det, const int32_t ngrams[], const uint8_t charMap[]) const; 87 virtual UBool match(InputText *det, CharsetMatch *results) const override; 95 virtual UBool match(InputText *det, CharsetMatch *results) const override; 146 virtual UBool match(InputText *det, CharsetMatc [all...] |
H A D | csrmbcs.cpp | 132 int32_t IteratedChar::nextByte(InputText *det) in nextByte() argument 134 if (nextIndex >= det->fRawLength) { in nextByte() 140 return det->fRawInput[nextIndex++]; in nextByte() 148 int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars[], int32_t commonCharsLen) const { in match_mbcs() argument 156 while (nextChar(&iter, det)) { in match_mbcs() 241 UBool CharsetRecog_sjis::nextChar(IteratedChar* it, InputText* det) const { in nextChar() 245 int32_t firstByte = it->charValue = it->nextByte(det); in nextChar() 255 int32_t secondByte = it->nextByte(det); in nextChar() 269 UBool CharsetRecog_sjis::match(InputText* det, CharsetMatch *results) const { in match() argument 270 int32_t confidence = match_mbcs(det, commonChars_sji in match() 369 match(InputText *det, CharsetMatch *results) const match() argument 391 match(InputText *det, CharsetMatch *results) const match() argument 443 match(InputText *det, CharsetMatch *results) const match() argument 519 match(InputText *det, CharsetMatch *results) const match() argument [all...] |
H A D | csrmbcs.h | 44 int32_t nextByte(InputText* det); 55 * @param det The CharsetDetector, which contains the input text 63 int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const; 86 * @param det The charset detector, which is needed to get at the input byte data 103 UBool nextChar(IteratedChar *it, InputText *det) const override; 134 UBool nextChar(IteratedChar *it, InputText *det) const override; 177 UBool nextChar(IteratedChar* it, InputText* det) const override; 196 UBool nextChar(IteratedChar* it, InputText* det) const override;
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | csrsbcs.h | 48 virtual int32_t nextByte(InputText *det); 49 virtual void parseCharacters(InputText *det); 52 int32_t parse(InputText *det); 66 int32_t nextByte(InputText *det); 67 void parseCharacters(InputText *det); 78 virtual UBool match(InputText *det, CharsetMatch *results) const = 0; 79 virtual int32_t match_sbcs(InputText *det, const int32_t ngrams[], const uint8_t charMap[]) const; 87 virtual UBool match(InputText *det, CharsetMatch *results) const; 95 virtual UBool match(InputText *det, CharsetMatch *results) const; 146 virtual UBool match(InputText *det, CharsetMatc [all...] |
H A D | csrmbcs.cpp | 132 int32_t IteratedChar::nextByte(InputText *det) in nextByte() argument 134 if (nextIndex >= det->fRawLength) { in nextByte() 140 return det->fRawInput[nextIndex++]; in nextByte() 148 int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars[], int32_t commonCharsLen) const { in match_mbcs() argument 157 while (nextChar(&iter, det)) { in match_mbcs() 244 UBool CharsetRecog_sjis::nextChar(IteratedChar* it, InputText* det) const { in nextChar() 248 int32_t firstByte = it->charValue = it->nextByte(det); in nextChar() 258 int32_t secondByte = it->nextByte(det); in nextChar() 272 UBool CharsetRecog_sjis::match(InputText* det, CharsetMatch *results) const { in match() argument 273 int32_t confidence = match_mbcs(det, commonChars_sji in match() 372 match(InputText *det, CharsetMatch *results) const match() argument 394 match(InputText *det, CharsetMatch *results) const match() argument 446 match(InputText *det, CharsetMatch *results) const match() argument 522 match(InputText *det, CharsetMatch *results) const match() argument [all...] |
H A D | csrmbcs.h | 44 int32_t nextByte(InputText* det); 55 * @param det The CharsetDetector, which contains the input text 63 int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const; 86 * @param det The charset detector, which is needed to get at the input byte data 103 UBool nextChar(IteratedChar *it, InputText *det) const; 134 UBool nextChar(IteratedChar *it, InputText *det) const; 177 UBool nextChar(IteratedChar* it, InputText* det) const; 196 UBool nextChar(IteratedChar* it, InputText* det) const;
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/charsetdet/ |
H A D | TestCharsetDetector.java | 90 CharsetDetector det = new CharsetDetector(); in TestConstruction() 91 if(det==null){ in TestConstruction() 105 String[] activeCharsetNames = det.getDetectableCharsets(); in TestConstruction() 138 CharsetDetector det = new CharsetDetector(); in TestInputFilter() 141 det.enableInputFilter(true); in TestInputFilter() 142 if (!det.inputFilterEnabled()){ in TestInputFilter() 146 det.setText(bytes); in TestInputFilter() 147 m = det.detect(); in TestInputFilter() 153 det.enableInputFilter(false); in TestInputFilter() 154 det in TestInputFilter() 423 checkMatch(CharsetDetector det, String testString, String encoding, String language, boolean checkRoundtrip, String id) checkMatch() argument [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/ |
H A D | TestCharsetDetector.java | 87 CharsetDetector det = new CharsetDetector(); in TestConstruction() 88 if(det==null){ in TestConstruction() 102 String[] activeCharsetNames = det.getDetectableCharsets(); in TestConstruction() 135 CharsetDetector det = new CharsetDetector(); in TestInputFilter() 138 det.enableInputFilter(true); in TestInputFilter() 139 if (!det.inputFilterEnabled()){ in TestInputFilter() 143 det.setText(bytes); in TestInputFilter() 144 m = det.detect(); in TestInputFilter() 150 det.enableInputFilter(false); in TestInputFilter() 151 det in TestInputFilter() 420 checkMatch(CharsetDetector det, String testString, String encoding, String language, boolean checkRoundtrip, String id) checkMatch() argument [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | CharsetRecog_mbcs.java | 40 * @param det The CharsetDetector, which contains the input text 48 int match(CharsetDetector det, int [] commonChars) { in match() argument 59 for (iter.reset(); nextChar(iter, det);) { in match() 156 int nextByte(CharsetDetector det) { in nextByte() argument 157 if (nextIndex >= det.fRawLength) { in nextByte() 161 int byteValue = det.fRawInput[nextIndex++] & 0x00ff; in nextByte() 174 * @param det The charset detector, which is needed to get at the input byte data 178 abstract boolean nextChar(iteratedChar it, CharsetDetector det); in nextChar() argument 201 boolean nextChar(iteratedChar it, CharsetDetector det) { in nextChar() argument 204 firstByte = it.charValue = it.nextByte(det); in nextChar() 226 match(CharsetDetector det) match() argument 267 nextChar(iteratedChar it, CharsetDetector det) nextChar() argument 295 match(CharsetDetector det) match() argument 329 nextChar(iteratedChar it, CharsetDetector det) nextChar() argument 410 match(CharsetDetector det) match() argument 448 match(CharsetDetector det) match() argument 475 nextChar(iteratedChar it, CharsetDetector det) nextChar() argument 549 match(CharsetDetector det) match() argument [all...] |
H A D | CharsetRecog_2022.java | 122 CharsetMatch match(CharsetDetector det) { in match() argument 123 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match() 124 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match() 139 CharsetMatch match(CharsetDetector det) { in match() argument 140 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match() 141 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match() 166 CharsetMatch match(CharsetDetector det) { in match() argument 167 int confidence = match(det in match() [all...] |
H A D | CharsetRecog_Unicode.java | 29 abstract CharsetMatch match(CharsetDetector det); in match() argument 63 CharsetMatch match(CharsetDetector det) in match() argument 65 byte[] input = det.fRawInput; in match() 84 return new CharsetMatch(det, this, confidence); in match() 99 CharsetMatch match(CharsetDetector det) in match() argument 101 byte[] input = det.fRawInput; in match() 120 return new CharsetMatch(det, this, confidence); in match() 134 CharsetMatch match(CharsetDetector det) in match() argument 136 byte[] input = det.fRawInput; in match() 137 int limit = (det in match() [all...] |
H A D | CharsetMatch.java | 194 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) { in CharsetMatch() argument 200 if (det.fInputStream == null) { in CharsetMatch() 203 fRawInput = det.fRawInput; in CharsetMatch() 204 fRawLength = det.fRawLength; in CharsetMatch() 206 fInputStream = det.fInputStream; in CharsetMatch() 214 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf, String csName, String lang) { in CharsetMatch() argument 220 if (det.fInputStream == null) { in CharsetMatch() 223 fRawInput = det.fRawInput; in CharsetMatch() 224 fRawLength = det.fRawLength; in CharsetMatch() 226 fInputStream = det in CharsetMatch() [all...] |
H A D | CharsetRecog_UTF8.java | 25 CharsetMatch match(CharsetDetector det) { in match() argument 29 byte input[] = det.fRawInput; in match() 34 if (det.fRawLength >= 3 && in match() 40 for (i=0; i<det.fRawLength; i++) { in match() 61 if (i>=det.fRawLength) { in match() 96 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
|
H A D | CharsetRecog_sbcs.java | 109 private int nextByte(CharsetDetector det) in nextByte() argument 111 if (byteIndex >= det.fInputLen) { in nextByte() 115 return det.fInputBytes[byteIndex++] & 0xFF; in nextByte() 118 protected void parseCharacters(CharsetDetector det) in parseCharacters() argument 123 while ((b = nextByte(det)) >= 0) { in parseCharacters() 138 public int parse(CharsetDetector det) in parse() argument 140 return parse (det, (byte)0x20); in parse() 142 public int parse(CharsetDetector det, byte spaceCh) in parse() argument 147 parseCharacters(det); in parse() 216 private int nextByte(CharsetDetector det) in nextByte() argument 235 parseCharacters(CharsetDetector det) parseCharacters() argument 269 match(CharsetDetector det, int[] ngrams, byte[] byteMap) match() argument 274 match(CharsetDetector det, int[] ngrams, byte[] byteMap, byte spaceChar) match() argument 280 matchIBM420(CharsetDetector det, int[] ngrams, byte[] byteMap, byte spaceChar) matchIBM420() argument 426 match(CharsetDetector det) match() argument 523 match(CharsetDetector det) match() argument 607 match(CharsetDetector det) match() argument 674 match(CharsetDetector det) match() argument 741 match(CharsetDetector det) match() argument 815 match(CharsetDetector det) match() argument 839 match(CharsetDetector det) match() argument 908 match(CharsetDetector det) match() argument 973 match(CharsetDetector det) match() argument 1037 match(CharsetDetector det) match() argument 1101 match(CharsetDetector det) match() argument 1150 match(CharsetDetector det) match() argument 1171 match(CharsetDetector det) match() argument 1224 match(CharsetDetector det) match() argument 1246 match(CharsetDetector det) match() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | CharsetRecog_mbcs.java | 41 * @param det The CharsetDetector, which contains the input text 49 int match(CharsetDetector det, int [] commonChars) { in match() argument 60 for (iter.reset(); nextChar(iter, det);) { in match() 157 int nextByte(CharsetDetector det) { in nextByte() argument 158 if (nextIndex >= det.fRawLength) { in nextByte() 162 int byteValue = det.fRawInput[nextIndex++] & 0x00ff; in nextByte() 175 * @param det The charset detector, which is needed to get at the input byte data 179 abstract boolean nextChar(iteratedChar it, CharsetDetector det); in nextChar() argument 202 boolean nextChar(iteratedChar it, CharsetDetector det) { in nextChar() argument 205 firstByte = it.charValue = it.nextByte(det); in nextChar() 227 match(CharsetDetector det) match() argument 268 nextChar(iteratedChar it, CharsetDetector det) nextChar() argument 296 match(CharsetDetector det) match() argument 330 nextChar(iteratedChar it, CharsetDetector det) nextChar() argument 411 match(CharsetDetector det) match() argument 449 match(CharsetDetector det) match() argument 476 nextChar(iteratedChar it, CharsetDetector det) nextChar() argument 550 match(CharsetDetector det) match() argument [all...] |
H A D | CharsetRecog_2022.java | 123 CharsetMatch match(CharsetDetector det) { in match() argument 124 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match() 125 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match() 140 CharsetMatch match(CharsetDetector det) { in match() argument 141 int confidence = match(det.fInputBytes, det.fInputLen, escapeSequences); in match() 142 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match() 167 CharsetMatch match(CharsetDetector det) { in match() argument 168 int confidence = match(det in match() [all...] |
H A D | CharsetRecog_Unicode.java | 30 abstract CharsetMatch match(CharsetDetector det); in match() argument 64 CharsetMatch match(CharsetDetector det) in match() argument 66 byte[] input = det.fRawInput; in match() 85 return new CharsetMatch(det, this, confidence); in match() 100 CharsetMatch match(CharsetDetector det) in match() argument 102 byte[] input = det.fRawInput; in match() 121 return new CharsetMatch(det, this, confidence); in match() 135 CharsetMatch match(CharsetDetector det) in match() argument 137 byte[] input = det.fRawInput; in match() 138 int limit = (det in match() [all...] |
H A D | CharsetMatch.java | 182 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf) { in CharsetMatch() argument 188 if (det.fInputStream == null) { in CharsetMatch() 191 fRawInput = det.fRawInput; in CharsetMatch() 192 fRawLength = det.fRawLength; in CharsetMatch() 194 fInputStream = det.fInputStream; in CharsetMatch() 202 CharsetMatch(CharsetDetector det, CharsetRecognizer rec, int conf, String csName, String lang) { in CharsetMatch() argument 208 if (det.fInputStream == null) { in CharsetMatch() 211 fRawInput = det.fRawInput; in CharsetMatch() 212 fRawLength = det.fRawLength; in CharsetMatch() 214 fInputStream = det in CharsetMatch() [all...] |
H A D | CharsetRecog_UTF8.java | 26 CharsetMatch match(CharsetDetector det) { in match() argument 30 byte input[] = det.fRawInput; in match() 35 if (det.fRawLength >= 3 && in match() 41 for (i=0; i<det.fRawLength; i++) { in match() 62 if (i>=det.fRawLength) { in match() 97 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
|
H A D | CharsetRecog_sbcs.java | 110 private int nextByte(CharsetDetector det) in nextByte() argument 112 if (byteIndex >= det.fInputLen) { in nextByte() 116 return det.fInputBytes[byteIndex++] & 0xFF; in nextByte() 119 protected void parseCharacters(CharsetDetector det) in parseCharacters() argument 124 while ((b = nextByte(det)) >= 0) { in parseCharacters() 139 public int parse(CharsetDetector det) in parse() argument 141 return parse (det, (byte)0x20); in parse() 143 public int parse(CharsetDetector det, byte spaceCh) in parse() argument 148 parseCharacters(det); in parse() 217 private int nextByte(CharsetDetector det) in nextByte() argument 236 parseCharacters(CharsetDetector det) parseCharacters() argument 270 match(CharsetDetector det, int[] ngrams, byte[] byteMap) match() argument 275 match(CharsetDetector det, int[] ngrams, byte[] byteMap, byte spaceChar) match() argument 281 matchIBM420(CharsetDetector det, int[] ngrams, byte[] byteMap, byte spaceChar) matchIBM420() argument 427 match(CharsetDetector det) match() argument 524 match(CharsetDetector det) match() argument 608 match(CharsetDetector det) match() argument 675 match(CharsetDetector det) match() argument 742 match(CharsetDetector det) match() argument 816 match(CharsetDetector det) match() argument 840 match(CharsetDetector det) match() argument 909 match(CharsetDetector det) match() argument 974 match(CharsetDetector det) match() argument 1038 match(CharsetDetector det) match() argument 1102 match(CharsetDetector det) match() argument 1151 match(CharsetDetector det) match() argument 1172 match(CharsetDetector det) match() argument 1225 match(CharsetDetector det) match() argument 1247 match(CharsetDetector det) match() argument [all...] |
/third_party/skia/src/core/ |
H A D | SkPoint.cpp | 112 SkScalar det = u.cross(v); in DistanceToLineBetweenSqd() local 117 *side = (Side) SkScalarSignAsInt(det); in DistanceToLineBetweenSqd() 119 SkScalar temp = sk_ieee_float_divide(det, uLengthSqd); in DistanceToLineBetweenSqd() 120 temp *= det; in DistanceToLineBetweenSqd() 161 SkScalar det = u.cross(v); in DistanceToLineSegmentBetweenSqd() local 162 SkScalar temp = sk_ieee_float_divide(det, uLengthSqd); in DistanceToLineSegmentBetweenSqd() 163 temp *= det; in DistanceToLineSegmentBetweenSqd()
|
/third_party/mesa3d/src/amd/common/ |
H A D | ac_nir_cull.c | 67 nir_ssa_def *det = nir_fsub(b, det_p0, det_p1); in cull_face() local 69 det = nir_bcsel(b, w_info->w_reflection, nir_fneg(b, det), det); in cull_face() 71 nir_ssa_def *front_facing_cw = nir_flt(b, det, nir_imm_float(b, 0.0f)); in cull_face() 72 nir_ssa_def *front_facing_ccw = nir_flt(b, nir_imm_float(b, 0.0f), det); in cull_face() 83 face_culled = nir_iand(b, face_culled, nir_fisfinite(b, det)); in cull_face()
|