Lines Matching defs:bytes
140 char *bytes = NULL;
145 bytes = NEW_ARRAY(char, length + 1);
146 source.extract(0, sLength, bytes, codepage);
149 return bytes;
152 static void freeBytes(char *bytes)
154 DELETE_ARRAY(bytes);
172 char *bytes = extractBytes(testString, codepage, byteLength);
174 if (bytes == NULL) {
181 ucsdet_setText(csd.getAlias(), bytes, byteLength, &status);
237 freeBytes(bytes);
289 char *bytes = extractBytes(s, "UTF-8", byteLength);
294 ucsdet_setText(csd, bytes, byteLength, &status);
312 freeBytes(bytes);
389 char *bytes = extractBytes(s, "ISO-8859-1", byteLength);
401 ucsdet_setText(csd, bytes, byteLength, &status);
423 ucsdet_setText(csd, bytes, byteLength, &status);
444 freeBytes(bytes);
453 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);
466 errcheckln(status, "English test with C1 bytes got no matches. - %s", u_errorName(status));
473 errln("English text with C1 bytes does not detect as windows-1252, but as %s", name);
480 errln("English text without C1 bytes got no matches.");
487 errln("English text without C1 bytes does not detect as ISO-8859-1, but as %s", name);
596 char *bytes = extractBytes(s1, "IBM424", bLength);
606 ucsdet_setText(csd, bytes, bLength, &status);
633 freeBytes(bytes);
680 char *bytes = extractBytes(s1, "IBM420", bLength);
690 ucsdet_setText(csd, bytes, bLength, &status);
717 freeBytes(bytes);
774 "It also includes some \\u201CC1\\u201D bytes.", -1, US_INV);