Lines Matching refs:csd
93 UCharsetDetector *csd = ucsdet_open(&status); in TestConstruction() local
94 UEnumeration *e = ucsdet_getAllDetectableCharsets(csd, &status); in TestConstruction()
113 ucsdet_close(csd); in TestConstruction()
126 UCharsetDetector *csd = ucsdet_open(&status); in TestUTF8() local
133 ucsdet_setText(csd, bytes, byteLength, &status); in TestUTF8()
139 match = ucsdet_detect(csd, &status); in TestUTF8()
152 ucsdet_setDeclaredEncoding(csd, "UTF-8", 5, &status); /* for coverage */ in TestUTF8()
156 ucsdet_close(csd); in TestUTF8()
172 UCharsetDetector *csd = ucsdet_open(&status); in TestUTF16() local
177 ucsdet_setText(csd, beBytes, beLength, &status); in TestUTF16()
178 match = ucsdet_detect(csd, &status); in TestUTF16()
197 ucsdet_setText(csd, leBytes, leLength, &status); in TestUTF16()
198 match = ucsdet_detect(csd, &status); in TestUTF16()
220 ucsdet_close(csd); in TestUTF16()
235 UCharsetDetector *csd = ucsdet_open(&status); in TestC1Bytes() local
244 ucsdet_setText(csd, bWindows, lWindows, &status); in TestC1Bytes()
245 match = ucsdet_detect(csd, &status); in TestC1Bytes()
258 ucsdet_setText(csd, bISO, lISO, &status); in TestC1Bytes()
259 match = ucsdet_detect(csd, &status); in TestC1Bytes()
276 ucsdet_close(csd); in TestC1Bytes()
288 UCharsetDetector *csd = ucsdet_open(&status); in TestInputFilter() local
295 ucsdet_enableInputFilter(csd, TRUE); in TestInputFilter()
297 if (!ucsdet_isInputFilterEnabled(csd)) { in TestInputFilter()
302 ucsdet_setText(csd, bytes, byteLength, &status); in TestInputFilter()
303 match = ucsdet_detect(csd, &status); in TestInputFilter()
323 ucsdet_enableInputFilter(csd, FALSE); in TestInputFilter()
324 ucsdet_setText(csd, bytes, byteLength, &status); in TestInputFilter()
325 match = ucsdet_detect(csd, &status); in TestInputFilter()
346 ucsdet_close(csd); in TestInputFilter()
393 UCharsetDetector *csd = ucsdet_open(&status); in TestBufferOverflow() local
396 ucsdet_setDeclaredEncoding(csd, "ISO-2022-JP", -1, &status); in TestBufferOverflow()
404 ucsdet_setText(csd, testStrings[idx], -1, &status); in TestBufferOverflow()
405 match = ucsdet_detect(csd, &status); in TestBufferOverflow()
425 ucsdet_close(csd); in TestBufferOverflow()
478 UCharsetDetector *csd = ucsdet_open(&status); in TestIBM424() local
482 ucsdet_setText(csd, bytes, bLength, &status); in TestIBM424()
483 match = ucsdet_detect(csd, &status); in TestIBM424()
495 ucsdet_setText(csd, bytes_r, brLength, &status); in TestIBM424()
496 match = ucsdet_detect(csd, &status); in TestIBM424()
511 ucsdet_close(csd); in TestIBM424()
556 UCharsetDetector *csd = ucsdet_open(&status); in TestIBM420() local
560 ucsdet_setText(csd, bytes, bLength, &status); in TestIBM420()
561 match = ucsdet_detect(csd, &status); in TestIBM420()
573 ucsdet_setText(csd, bytes_r, brLength, &status); in TestIBM420()
574 match = ucsdet_detect(csd, &status); in TestIBM420()
589 ucsdet_close(csd); in TestIBM420()