Lines Matching refs:csd
169 LocalUCharsetDetectorPointer csd(ucsdet_open(&status)); in checkEncoding() local
181 ucsdet_setText(csd.getAlias(), bytes, byteLength, &status); in checkEncoding()
184 const UCharsetMatch **matches = ucsdet_detectAll(csd.getAlias(), &matchCount, &status); in checkEncoding()
258 LocalUCharsetDetectorPointer csd(ucsdet_open(status)); in ConstructionTest() local
259 LocalUEnumerationPointer e(ucsdet_getAllDetectableCharsets(csd.getAlias(), status)); in ConstructionTest()
285 LocalUEnumerationPointer eActive(ucsdet_getDetectableCharsets(csd.getAlias(), status)); in ConstructionTest()
329 UCharsetDetector *csd = ucsdet_open(&status); in UTF8Test() local
333 ucsdet_setText(csd, bytes, byteLength, &status); in UTF8Test()
334 match = ucsdet_detect(csd, &status); in UTF8Test()
347 ucsdet_setDeclaredEncoding(csd, "UTF-8", 5, &status); /* for coverage */ in UTF8Test()
352 ucsdet_close(csd); in UTF8Test()
369 UCharsetDetector *csd = ucsdet_open(&status); in UTF16Test() local
374 ucsdet_setText(csd, beBytes, beLength, &status); in UTF16Test()
375 match = ucsdet_detect(csd, &status); in UTF16Test()
395 ucsdet_setText(csd, leBytes, leLength, &status); in UTF16Test()
396 match = ucsdet_detect(csd, &status); in UTF16Test()
419 ucsdet_close(csd); in UTF16Test()
429 UCharsetDetector *csd = ucsdet_open(&status); in InputFilterTest() local
433 ucsdet_enableInputFilter(csd, TRUE); in InputFilterTest()
435 if (!ucsdet_isInputFilterEnabled(csd)) { in InputFilterTest()
440 ucsdet_setText(csd, bytes, byteLength, &status); in InputFilterTest()
441 match = ucsdet_detect(csd, &status); in InputFilterTest()
461 ucsdet_enableInputFilter(csd, FALSE); in InputFilterTest()
462 ucsdet_setText(csd, bytes, byteLength, &status); in InputFilterTest()
463 match = ucsdet_detect(csd, &status); in InputFilterTest()
484 ucsdet_close(csd); in InputFilterTest()
497 UCharsetDetector *csd = ucsdet_open(&status); in C1BytesTest() local
501 ucsdet_setText(csd, bWindows, lWindows, &status); in C1BytesTest()
502 match = ucsdet_detect(csd, &status); in C1BytesTest()
515 ucsdet_setText(csd, bISO, lISO, &status); in C1BytesTest()
516 match = ucsdet_detect(csd, &status); in C1BytesTest()
533 ucsdet_close(csd); in C1BytesTest()
639 UCharsetDetector *csd = ucsdet_open(&status); in IBM424Test() local
640 ucsdet_setDetectableCharset(csd, "IBM424_rtl", TRUE, &status); in IBM424Test()
641 ucsdet_setDetectableCharset(csd, "IBM424_ltr", TRUE, &status); in IBM424Test()
642 ucsdet_setDetectableCharset(csd, "IBM420_rtl", TRUE, &status); in IBM424Test()
643 ucsdet_setDetectableCharset(csd, "IBM420_ltr", TRUE, &status); in IBM424Test()
650 ucsdet_setText(csd, bytes, bLength, &status); in IBM424Test()
651 match = ucsdet_detect(csd, &status); in IBM424Test()
663 ucsdet_setText(csd, bytes_r, brLength, &status); in IBM424Test()
664 match = ucsdet_detect(csd, &status); in IBM424Test()
679 ucsdet_close(csd); in IBM424Test()
729 UCharsetDetector *csd = ucsdet_open(&status); in IBM420Test() local
733 ucsdet_setDetectableCharset(csd, "IBM424_rtl", TRUE, &status); in IBM420Test()
734 ucsdet_setDetectableCharset(csd, "IBM424_ltr", TRUE, &status); in IBM420Test()
735 ucsdet_setDetectableCharset(csd, "IBM420_rtl", TRUE, &status); in IBM420Test()
736 ucsdet_setDetectableCharset(csd, "IBM420_ltr", TRUE, &status); in IBM420Test()
740 ucsdet_setText(csd, bytes, bLength, &status); in IBM420Test()
741 match = ucsdet_detect(csd, &status); in IBM420Test()
753 ucsdet_setText(csd, bytes_r, brLength, &status); in IBM420Test()
754 match = ucsdet_detect(csd, &status); in IBM420Test()
769 ucsdet_close(csd); in IBM420Test()
784 UCharsetDetector *csd = ucsdet_open(&status); in Ticket6394Test() local
785 ucsdet_setText(csd, latin1Text, -1, &status); in Ticket6394Test()
792 const UCharsetMatch **matches = ucsdet_detectAll(csd, &matchCount, &status); in Ticket6394Test()
812 ucsdet_close(csd); in Ticket6394Test()