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