/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
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 [all …]
|
D | CharsetRecog_mbcs.java | 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() 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 …]
|
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.fInputBytes, det.fInputLen, escapeSequences); in match() 169 return confidence == 0 ? null : new CharsetMatch(det, this, confidence); in match()
|
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.fRawLength / 4) * 4; in match() [all …]
|
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.fInputStream; in CharsetMatch()
|
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()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/charsetdet/ |
D | TestCharsetDetector.java | 90 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 …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
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 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 …]
|
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, CharsetMatch *results) const; [all …]
|
D | csrsbcs.cpp | 95 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 …]
|
D | csrmbcs.h | 44 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;
|
/third_party/icu/icu4c/source/i18n/ |
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 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 …]
|
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, CharsetMatch *results) const; [all …]
|
D | csrsbcs.cpp | 95 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 …]
|
D | csrmbcs.h | 44 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;
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
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 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 …]
|
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, CharsetMatch *results) const; [all …]
|
D | csrsbcs.cpp | 95 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 …]
|
D | csrmbcs.h | 44 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;
|
/third_party/node/deps/icu-small/source/i18n/ |
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 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 …]
|
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, CharsetMatch *results) const override; [all …]
|
D | csrsbcs.cpp | 95 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 …]
|
/third_party/boost/libs/hana/example/cppcon_2014/ |
D | det.cpp | 15 BOOST_HANA_CONSTEXPR_CHECK(det(matrix(row(1))) == 1); in main() 16 BOOST_HANA_CONSTEXPR_CHECK(det(matrix(row(2))) == 2); in main() 18 BOOST_HANA_CONSTEXPR_CHECK(det(matrix(row(1, 2), row(3, 4))) == -2); in main() 21 det(matrix( in main() 30 det(matrix( in main() 39 det(matrix( in main()
|
/third_party/weston/tests/ |
D | matrix-test.c | 75 double det = 0; in determinant() local 78 det -= m->d[3 + 0 * 4] * det3x3(&m->d[4], &m->d[8], &m->d[12]); in determinant() 79 det += m->d[3 + 1 * 4] * det3x3(&m->d[0], &m->d[8], &m->d[12]); in determinant() 80 det -= m->d[3 + 2 * 4] * det3x3(&m->d[0], &m->d[4], &m->d[12]); in determinant() 81 det += m->d[3 + 3 * 4] * det3x3(&m->d[0], &m->d[4], &m->d[8]); in determinant() 84 det += m->d[0 + 0 * 4] * det3x3(&m->d[5], &m->d[9], &m->d[13]); in determinant() 85 det -= m->d[0 + 1 * 4] * det3x3(&m->d[1], &m->d[9], &m->d[13]); in determinant() 86 det += m->d[0 + 2 * 4] * det3x3(&m->d[1], &m->d[5], &m->d[13]); in determinant() 87 det -= m->d[0 + 3 * 4] * det3x3(&m->d[1], &m->d[5], &m->d[9]); in determinant() 89 return det; in determinant() [all …]
|
/third_party/boost/libs/math/example/ |
D | HSO3.hpp | 134 TYPE_FLOAT det = *where; in find_invariant_vector() local 136 if (det <= numeric_limits<TYPE_FLOAT>::epsilon()) in find_invariant_vector() 150 x = (-b13*b22+b12*b23)/det; in find_invariant_vector() 151 y = (-b11*b23+b13*b21)/det; in find_invariant_vector() 159 x = (-b12*b23+b13*b22)/det; in find_invariant_vector() 160 z = (-b11*b22+b12*b21)/det; in find_invariant_vector() 168 y = (-b11*b23+b13*b21)/det; in find_invariant_vector() 169 z = (-b12*b21+b11*b22)/det; in find_invariant_vector() 177 x = (-b13*b32+b12*b33)/det; in find_invariant_vector() 178 y = (-b11*b33+b13*b31)/det; in find_invariant_vector() [all …]
|