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",
748 printOffsets(const int32_t *offsets, int32_t length, char *out) {
751 if(offsets==NULL) {
759 o=offsets[i];
761 // print all offsets with 2 characters each (-x, -9..99, xx)
800 // step==0 performs bulk conversion and generates offsets
814 // output offsets only for bulk conversion
923 // and never output offsets
1003 { 0, "bulk" }, // must be first for offsets to be checked
1026 // bulk test is first, then offsets are not checked any more
1027 cc.offsets=NULL;
1041 cc.offsets!=NULL ? resultOffsets : NULL,
1048 if (cc.offsets != NULL && resultOffsets[resultLength] != -1) {
1049 errln("toUnicode[%d](%s) Conversion wrote too much to offsets at index %d",
1127 } else if(cc.offsets!=NULL && 0!=memcmp(cc.offsets, resultOffsets, cc.unicodeLength*sizeof(*cc.offsets))) {
1128 msg="wrong offsets";
1149 s=printOffsets(cc.offsets, cc.unicodeLength, offsetsString=s);
1164 " offsets <%s>\n"
1165 " result offsets <%s>\n"
1306 // step==0 performs bulk conversion and generates offsets
1320 // output offsets only for bulk conversion
1450 { 0, "bulk", "utf8" }, // must be first for offsets to be checked
1470 cc.offsets!=NULL ? resultOffsets : NULL,
1478 errln("fromUnicode[%d](%s) Conversion wrote too much to offsets at index %d",
1486 // bulk test is first, then offsets are not checked any more
1487 cc.offsets=NULL;
1578 } else if(cc.offsets!=NULL && 0!=memcmp(cc.offsets, resultOffsets, cc.bytesLength*sizeof(*cc.offsets))) {
1579 msg="wrong offsets";
1600 s=printOffsets(cc.offsets, cc.bytesLength, offsetsString=s);
1615 " offsets <%s>\n"
1616 " result offsets <%s>\n"