• Home
  • Raw
  • Download

Lines Matching full:csd

169     LocalUCharsetDetectorPointer csd(ucsdet_open(&status));  in checkEncoding()  local
181 ucsdet_setText(csd.getAlias(), bytes.get(), byteLength, &status); in checkEncoding()
184 const UCharsetMatch **matches = ucsdet_detectAll(csd.getAlias(), &matchCount, &status); in checkEncoding()
254 LocalUCharsetDetectorPointer csd(ucsdet_open(status)); in ConstructionTest() local
255 LocalUEnumerationPointer e(ucsdet_getAllDetectableCharsets(csd.getAlias(), status)); in ConstructionTest()
281 LocalUEnumerationPointer eActive(ucsdet_getDetectableCharsets(csd.getAlias(), status)); in ConstructionTest()
325 UCharsetDetector *csd = ucsdet_open(&status); in UTF8Test() local
329 ucsdet_setText(csd, bytes, byteLength, &status); in UTF8Test()
330 match = ucsdet_detect(csd, &status); in UTF8Test()
343 ucsdet_setDeclaredEncoding(csd, "UTF-8", 5, &status); /* for coverage */ in UTF8Test()
348 ucsdet_close(csd); in UTF8Test()
365 LocalUCharsetDetectorPointer csd(ucsdet_open(&status)); in UTF16Test() local
370 ucsdet_setText(csd.getAlias(), beBytes.get(), beLength, &status); in UTF16Test()
371 match = ucsdet_detect(csd.getAlias(), &status); in UTF16Test()
387 ucsdet_setText(csd.getAlias(), leBytes.get(), leLength, &status); in UTF16Test()
388 match = ucsdet_detect(csd.getAlias(), &status); in UTF16Test()
414 UCharsetDetector *csd = ucsdet_open(&status); in InputFilterTest() local
418 ucsdet_enableInputFilter(csd, TRUE); in InputFilterTest()
420 if (!ucsdet_isInputFilterEnabled(csd)) { in InputFilterTest()
421 errln("ucsdet_enableInputFilter(csd, TRUE) did not enable input filter!"); in InputFilterTest()
425 ucsdet_setText(csd, bytes, byteLength, &status); in InputFilterTest()
426 match = ucsdet_detect(csd, &status); in InputFilterTest()
446 ucsdet_enableInputFilter(csd, FALSE); in InputFilterTest()
447 ucsdet_setText(csd, bytes, byteLength, &status); in InputFilterTest()
448 match = ucsdet_detect(csd, &status); in InputFilterTest()
469 ucsdet_close(csd); in InputFilterTest()
482 UCharsetDetector *csd = ucsdet_open(&status); in C1BytesTest() local
486 ucsdet_setText(csd, bWindows, lWindows, &status); in C1BytesTest()
487 match = ucsdet_detect(csd, &status); in C1BytesTest()
500 ucsdet_setText(csd, bISO, lISO, &status); in C1BytesTest()
501 match = ucsdet_detect(csd, &status); in C1BytesTest()
518 ucsdet_close(csd); in C1BytesTest()
624 UCharsetDetector *csd = ucsdet_open(&status); in IBM424Test() local
625 ucsdet_setDetectableCharset(csd, "IBM424_rtl", TRUE, &status); in IBM424Test()
626 ucsdet_setDetectableCharset(csd, "IBM424_ltr", TRUE, &status); in IBM424Test()
627 ucsdet_setDetectableCharset(csd, "IBM420_rtl", TRUE, &status); in IBM424Test()
628 ucsdet_setDetectableCharset(csd, "IBM420_ltr", TRUE, &status); in IBM424Test()
635 ucsdet_setText(csd, bytes, bLength, &status); in IBM424Test()
636 match = ucsdet_detect(csd, &status); in IBM424Test()
648 ucsdet_setText(csd, bytes_r, brLength, &status); in IBM424Test()
649 match = ucsdet_detect(csd, &status); in IBM424Test()
664 ucsdet_close(csd); in IBM424Test()
714 UCharsetDetector *csd = ucsdet_open(&status); in IBM420Test() local
718 ucsdet_setDetectableCharset(csd, "IBM424_rtl", TRUE, &status); in IBM420Test()
719 ucsdet_setDetectableCharset(csd, "IBM424_ltr", TRUE, &status); in IBM420Test()
720 ucsdet_setDetectableCharset(csd, "IBM420_rtl", TRUE, &status); in IBM420Test()
721 ucsdet_setDetectableCharset(csd, "IBM420_ltr", TRUE, &status); in IBM420Test()
725 ucsdet_setText(csd, bytes, bLength, &status); in IBM420Test()
726 match = ucsdet_detect(csd, &status); in IBM420Test()
738 ucsdet_setText(csd, bytes_r, brLength, &status); in IBM420Test()
739 match = ucsdet_detect(csd, &status); in IBM420Test()
754 ucsdet_close(csd); in IBM420Test()
769 UCharsetDetector *csd = ucsdet_open(&status); in Ticket6394Test() local
770 ucsdet_setText(csd, latin1Text, -1, &status); in Ticket6394Test()
777 const UCharsetMatch **matches = ucsdet_detectAll(csd, &matchCount, &status); in Ticket6394Test()
797 ucsdet_close(csd); in Ticket6394Test()