Home | History | Annotate | Download | only in intltest

Lines Matching defs:bytes

128     char *bytes = NULL;
133 bytes = NEW_ARRAY(char, length + 1);
134 source.extract(0, sLength, bytes, codepage);
137 return bytes;
140 static void freeBytes(char *bytes)
142 DELETE_ARRAY(bytes);
160 char *bytes = extractBytes(testString, codepage, byteLength);
162 if (bytes == NULL) {
169 ucsdet_setText(csd.getAlias(), bytes, byteLength, &status);
225 freeBytes(bytes);
277 char *bytes = extractBytes(s, "UTF-8", byteLength);
282 ucsdet_setText(csd, bytes, byteLength, &status);
300 freeBytes(bytes);
377 char *bytes = extractBytes(s, "ISO-8859-1", byteLength);
389 ucsdet_setText(csd, bytes, byteLength, &status);
411 ucsdet_setText(csd, bytes, byteLength, &status);
432 freeBytes(bytes);
441 UnicodeString ssWindows("This is another small sample of some English text. Just enough to be sure that it detects correctly. It also includes some \\u201CC1\\u201D bytes.", -1, US_INV);
454 errcheckln(status, "English test with C1 bytes got no matches. - %s", u_errorName(status));
461 errln("English text with C1 bytes does not detect as windows-1252, but as %s", name);
468 errln("English text without C1 bytes got no matches.");
475 errln("English text without C1 bytes does not detect as ISO-8859-1, but as %s", name);
584 char *bytes = extractBytes(s1, "IBM424", bLength);
594 ucsdet_setText(csd, bytes, bLength, &status);
621 freeBytes(bytes);
668 char *bytes = extractBytes(s1, "IBM420", bLength);
678 ucsdet_setText(csd, bytes, bLength, &status);
705 freeBytes(bytes);