Lines Matching full:offsets
135 cc.offsets=testCase->getIntVector(offsetsLength, "offsets", errorCode);
137 cc.offsets=NULL;
139 errln("toUnicode[%d] unicode[%d] and offsets[%d] must have the same length",
257 cc.offsets=testCase->getIntVector(offsetsLength, "offsets", errorCode);
259 cc.offsets=NULL;
261 errln("fromUnicode[%d] bytes[%d] and offsets[%d] must have the same length",
750 printOffsets(const int32_t *offsets, int32_t length, char *out) {
753 if(offsets==NULL) {
761 o=offsets[i];
763 // print all offsets with 2 characters each (-x, -9..99, xx)
802 // step==0 performs bulk conversion and generates offsets
816 // output offsets only for bulk conversion
925 // and never output offsets
1005 { 0, "bulk" }, // must be first for offsets to be checked
1028 // bulk test is first, then offsets are not checked any more
1029 cc.offsets=NULL;
1043 cc.offsets!=NULL ? resultOffsets : NULL,
1050 if (cc.offsets != NULL && resultOffsets[resultLength] != -1) {
1051 errln("toUnicode[%d](%s) Conversion wrote too much to offsets at index %d",
1129 } else if(cc.offsets!=NULL && 0!=memcmp(cc.offsets, resultOffsets, cc.unicodeLength*sizeof(*cc.offsets))) {
1130 msg="wrong offsets";
1151 s=printOffsets(cc.offsets, cc.unicodeLength, offsetsString=s);
1166 " offsets <%s>\n"
1167 " result offsets <%s>\n"
1308 // step==0 performs bulk conversion and generates offsets
1322 // output offsets only for bulk conversion
1452 { 0, "bulk", "utf8" }, // must be first for offsets to be checked
1472 cc.offsets!=NULL ? resultOffsets : NULL,
1480 errln("fromUnicode[%d](%s) Conversion wrote too much to offsets at index %d",
1488 // bulk test is first, then offsets are not checked any more
1489 cc.offsets=NULL;
1580 } else if(cc.offsets!=NULL && 0!=memcmp(cc.offsets, resultOffsets, cc.bytesLength*sizeof(*cc.offsets))) {
1581 msg="wrong offsets";
1602 s=printOffsets(cc.offsets, cc.bytesLength, offsetsString=s);
1617 " offsets <%s>\n"
1618 " result offsets <%s>\n"