• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ICU-531.30/icuSources/i18n/

Lines Matching defs:det

173 int32_t IteratedChar::nextByte(InputText *det)
175 if (nextIndex >= det->fRawLength) {
181 return det->fRawInput[nextIndex++];
190 int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars[], int32_t commonCharsLen, const uint8_t (*keyStrings)[MAX_KEY_STRING_WITH_NULL] ) const {
192 int32_t CharsetRecog_mbcs::match_mbcs(InputText *det, const uint16_t commonChars[], int32_t commonCharsLen) const {
205 while (nextChar(&iter, det)) {
225 int32_t prefixLen = isPrefix(keyStrings[keyIndex], &det->fRawInput[iter.index], &det->fRawInput[det->fRawLength]);
316 UBool CharsetRecog_sjis::nextChar(IteratedChar* it, InputText* det) const {
320 int32_t firstByte = it->charValue = it->nextByte(det);
330 int32_t secondByte = it->nextByte(det);
344 UBool CharsetRecog_sjis::match(InputText* det, CharsetMatch *results) const {
346 int32_t confidence = match_mbcs(det, commonChars_sjis, ARRAY_SIZE(commonChars_sjis), keyStrings_sjis);
348 int32_t confidence = match_mbcs(det, commonChars_sjis, ARRAY_SIZE(commonChars_sjis));
350 results->set(det, this, confidence);
369 UBool CharsetRecog_euc::nextChar(IteratedChar* it, InputText* det) const {
376 firstByte = it->charValue = it->nextByte(det);
388 secondByte = it->nextByte(det);
420 thirdByte = it->nextByte(det);
448 UBool CharsetRecog_euc_jp::match(InputText *det, CharsetMatch *results) const
451 int32_t confidence = match_mbcs(det, commonChars_euc_jp, ARRAY_SIZE(commonChars_euc_jp), keyStrings_euc_jp);
453 int32_t confidence = match_mbcs(det, commonChars_euc_jp, ARRAY_SIZE(commonChars_euc_jp));
455 results->set(det, this, confidence);
474 UBool CharsetRecog_euc_kr::match(InputText *det, CharsetMatch *results) const
477 int32_t confidence = match_mbcs(det, commonChars_euc_kr, ARRAY_SIZE(commonChars_euc_kr), keyStrings_euc_kr);
479 int32_t confidence = match_mbcs(det, commonChars_euc_kr, ARRAY_SIZE(commonChars_euc_kr));
481 results->set(det, this, confidence);
490 UBool CharsetRecog_big5::nextChar(IteratedChar* it, InputText* det) const
496 firstByte = it->charValue = it->nextByte(det);
507 int32_t secondByte = it->nextByte(det);
530 UBool CharsetRecog_big5::match(InputText *det, CharsetMatch *results) const
533 int32_t confidence = match_mbcs(det, commonChars_big5, ARRAY_SIZE(commonChars_big5), keyStrings_big5);
535 int32_t confidence = match_mbcs(det, commonChars_big5, ARRAY_SIZE(commonChars_big5));
537 results->set(det, this, confidence);
546 UBool CharsetRecog_gb_18030::nextChar(IteratedChar* it, InputText* det) const {
554 firstByte = it->charValue = it->nextByte(det);
566 secondByte = it->nextByte(det);
580 thirdByte = it->nextByte(det);
583 fourthByte = it->nextByte(det);
610 UBool CharsetRecog_gb_18030::match(InputText *det, CharsetMatch *results) const
613 int32_t confidence = match_mbcs(det, commonChars_gb_18030, ARRAY_SIZE(commonChars_gb_18030), keyStrings_gb_18030);
615 int32_t confidence = match_mbcs(det, commonChars_gb_18030, ARRAY_SIZE(commonChars_gb_18030));
617 results->set(det, this, confidence);