Home
last modified time | relevance | path

Searched refs:det (Results 1 – 25 of 209) sorted by relevance

123456789

/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_sbcs.java110 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
[all …]
DCharsetRecog_mbcs.java49 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()
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()
214 int secondByte = it.nextByte(det); in nextChar()
227 CharsetMatch match(CharsetDetector det) { in match() argument
[all …]
DCharsetRecog_2022.java123 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.fInputBytes, det.fInputLen, escapeSequences); in match()
169 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_Unicode.java30 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.fRawLength / 4) * 4; in match()
[all …]
DCharsetMatch.java182 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.fInputStream; in CharsetMatch()
DCharsetRecog_UTF8.java26 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()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_sbcs.java109 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
[all …]
DCharsetRecog_mbcs.java48 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()
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()
213 int secondByte = it.nextByte(det); in nextChar()
226 CharsetMatch match(CharsetDetector det) { in match() argument
[all …]
DCharsetRecog_2022.java122 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.fInputBytes, det.fInputLen, escapeSequences); in match()
168 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
DCharsetRecog_Unicode.java29 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.fRawLength / 4) * 4; in match()
[all …]
DCharsetMatch.java194 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.fInputStream; in CharsetMatch()
DCharsetRecog_UTF8.java25 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()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/
DTestCharsetDetector.java87 CharsetDetector det = new CharsetDetector(); in TestConstruction() local
88 if(det==null){ in TestConstruction()
102 String[] activeCharsetNames = det.getDetectableCharsets(); in TestConstruction()
135 CharsetDetector det = new CharsetDetector(); in TestInputFilter() local
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.setText(bytes); in TestInputFilter()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/
DTestCharsetDetector.java90 CharsetDetector det = new CharsetDetector(); in TestConstruction() local
91 if(det==null){ in TestConstruction()
105 String[] activeCharsetNames = det.getDetectableCharsets(); in TestConstruction()
138 CharsetDetector det = new CharsetDetector(); in TestInputFilter() local
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.setText(bytes); in TestInputFilter()
[all …]
/external/icu/icu4c/source/i18n/
Dcsrmbcs.cpp132 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 commonC… 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_sjis, UPRV_LENGTHOF(commonChars_sjis)); in match()
[all …]
Dcsrsbcs.h48 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, CharsetMatch *results) const;
[all …]
Dcsrsbcs.cpp95 int32_t NGramParser::nextByte(InputText *det) in nextByte() argument
97 if (byteIndex >= det->fInputLen) { in nextByte()
101 return det->fInputBytes[byteIndex++]; in nextByte()
104 void NGramParser::parseCharacters(InputText *det) in parseCharacters() argument
109 while ((b = nextByte(det)) >= 0) { in parseCharacters()
123 int32_t NGramParser::parse(InputText *det) in parse() argument
125 parseCharacters(det); in parse()
192 int32_t NGramParser_IBM420::nextByte(InputText *det) in nextByte() argument
195 if (byteIndex >= det->fInputLen || det->fInputBytes[byteIndex] == 0) { in nextByte()
200 alef = isLamAlef(det->fInputBytes[byteIndex]); in nextByte()
[all …]
Dcsrmbcs.h44 int32_t nextByte(InputText* det);
63 int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const;
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;
/external/icu/libicu/cts_headers/
Dcsrsbcs.h48 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, CharsetMatch *results) const;
[all …]
Dcsrmbcs.h44 int32_t nextByte(InputText* det);
63 int32_t match_mbcs(InputText* det, const uint16_t commonChars[], int32_t commonCharsLen) const;
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;
/external/pdfium/third_party/lcms/src/
Dcmsmtrx.c131 cmsFloat64Number det, c0, c1, c2; in _cmsMAT3inverse() local
137 det = a -> v[0].n[0]*c0 + a -> v[0].n[1]*c1 + a -> v[0].n[2]*c2; in _cmsMAT3inverse()
139 if (fabs(det) < MATRIX_DET_TOLERANCE) return FALSE; // singular matrix; can't invert in _cmsMAT3inverse()
141 b -> v[0].n[0] = c0/det; in _cmsMAT3inverse()
142 b -> v[0].n[1] = (a -> v[0].n[2]*a -> v[2].n[1] - a -> v[0].n[1]*a -> v[2].n[2])/det; in _cmsMAT3inverse()
143 b -> v[0].n[2] = (a -> v[0].n[1]*a -> v[1].n[2] - a -> v[0].n[2]*a -> v[1].n[1])/det; in _cmsMAT3inverse()
144 b -> v[1].n[0] = c1/det; in _cmsMAT3inverse()
145 b -> v[1].n[1] = (a -> v[0].n[0]*a -> v[2].n[2] - a -> v[0].n[2]*a -> v[2].n[0])/det; in _cmsMAT3inverse()
146 b -> v[1].n[2] = (a -> v[0].n[2]*a -> v[1].n[0] - a -> v[0].n[0]*a -> v[1].n[2])/det; in _cmsMAT3inverse()
147 b -> v[2].n[0] = c2/det; in _cmsMAT3inverse()
[all …]
/external/skia/src/core/
DSkPoint.cpp105 SkScalar det = u.cross(v); in DistanceToLineBetweenSqd() local
110 *side = (Side) SkScalarSignAsInt(det); in DistanceToLineBetweenSqd()
112 SkScalar temp = sk_ieee_float_divide(det, uLengthSqd); in DistanceToLineBetweenSqd()
113 temp *= det; in DistanceToLineBetweenSqd()
154 SkScalar det = u.cross(v); in DistanceToLineSegmentBetweenSqd() local
155 SkScalar temp = sk_ieee_float_divide(det, uLengthSqd); in DistanceToLineSegmentBetweenSqd()
156 temp *= det; in DistanceToLineSegmentBetweenSqd()
/external/skqp/src/core/
DSkPoint.cpp161 SkScalar det = u.cross(v); in DistanceToLineBetweenSqd() local
166 *side = (Side) SkScalarSignAsInt(det); in DistanceToLineBetweenSqd()
168 SkScalar temp = sk_ieee_float_divide(det, uLengthSqd); in DistanceToLineBetweenSqd()
169 temp *= det; in DistanceToLineBetweenSqd()
210 SkScalar det = u.cross(v); in DistanceToLineSegmentBetweenSqd() local
211 SkScalar temp = sk_ieee_float_divide(det, uLengthSqd); in DistanceToLineSegmentBetweenSqd()
212 temp *= det; in DistanceToLineSegmentBetweenSqd()
/external/skia/modules/canvaskit/
Dmatrix.js59 var det = m[0]*m[4]*m[8] + m[1]*m[5]*m[6] + m[2]*m[3]*m[7]
61 if (!det) {
72 (m[4]*m[8] - m[5]*m[7])/det, (m[2]*m[7] - m[1]*m[8])/det, (m[1]*m[5] - m[2]*m[4])/det,
73 (m[5]*m[6] - m[3]*m[8])/det, (m[0]*m[8] - m[2]*m[6])/det, (m[2]*m[3] - m[0]*m[5])/det,
74 (m[3]*m[7] - m[4]*m[6])/det, (m[1]*m[6] - m[0]*m[7])/det, (m[0]*m[4] - m[1]*m[3])/det,
352 var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
353 var invdet = 1.0 / det;
356 if (det === 0 || invdet === Infinity) {
/external/eigen/test/
Dinverse.cpp50 RealScalar det; in inverse() local
53 m1.computeInverseAndDetWithCheck(m2, det, invertible); in inverse()
56 VERIFY_IS_APPROX(det, m1.determinant()); in inverse()
66 m3.computeInverseAndDetWithCheck(m4, det, invertible); in inverse()
68 VERIFY_IS_MUCH_SMALLER_THAN(abs(det-m3.determinant()), RealScalar(1)); in inverse()

123456789