Lines Matching refs:ds

692 ures_swapResource(const UDataSwapper *ds,
734 count=udata_readInt32(ds, (int32_t)*p);
736 ds->swapArray32(ds, p, 4, q, pErrorCode);
738 ds->swapArray16(ds, p+1, 2*count, q+1, pErrorCode);
741 count=udata_readInt32(ds, (int32_t)*p);
743 ds->swapArray32(ds, p, 4, q, pErrorCode);
751 0==ds->compareInvChars(ds, key, -1,
754 ucol_looksLikeCollationBinary(ds, p+1, count))
756 ucol_swap(ds, p+1, count, q+1, pErrorCode);
776 count=ds->readUInt16(*pKey16);
781 ds->swapArray16(ds, pKey16++, 2, qKey16++, pErrorCode);
788 count=udata_readInt32(ds, *pKey32);
793 ds->swapArray32(ds, pKey32++, 4, qKey32++, pErrorCode);
809 int32_t keyOffset=ds->readUInt16(pKey16[i]);
814 int32_t keyOffset=udata_readInt32(ds, pKey32[i]);
819 item=ds->readUInt32(p[i]);
820 ures_swapResource(ds, inBundle, outBundle, item, itemKey, pTempTable, pErrorCode);
822 udata_printError(ds, "ures_swapResource(table res=%08x)[%d].recurse(%08x) failed\n",
828 if(pTempTable->majorFormatVersion>1 || ds->inCharset==ds->outCharset) {
831 ds->swapArray16(ds, pKey16, count*2, qKey16, pErrorCode);
832 ds->swapArray32(ds, p, count*4, q, pErrorCode);
835 ds->swapArray32(ds, pKey32, count*2*4, qKey32, pErrorCode);
850 pTempTable->rows[i].keyIndex=ds->readUInt16(pKey16[i]);
855 pTempTable->rows[i].keyIndex=udata_readInt32(ds, pKey32[i]);
863 udata_printError(ds, "ures_swapResource(table res=%08x).uprv_sortArray(%d items) failed\n",
886 ds->swapArray16(ds, pKey16+oldIndex, 2, rKey16+i, pErrorCode);
901 ds->swapArray32(ds, pKey32+oldIndex, 4, rKey32+i, pErrorCode);
920 ds->swapArray32(ds, p+oldIndex, 4, r+i, pErrorCode);
933 count=udata_readInt32(ds, (int32_t)*p);
935 ds->swapArray32(ds, p++, 4, q++, pErrorCode);
939 item=ds->readUInt32(p[i]);
940 ures_swapResource(ds, inBundle, outBundle, item, NULL, pTempTable, pErrorCode);
942 udata_printError(ds, "ures_swapResource(array res=%08x)[%d].recurse(%08x) failed\n",
949 ds->swapArray32(ds, p, 4*count, q, pErrorCode);
953 count=udata_readInt32(ds, (int32_t)*p);
955 ds->swapArray32(ds, p, 4*(1+count), q, pErrorCode);
965 ures_swap(const UDataSwapper *ds,
983 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode);
998 udata_printError(ds, "ures_swap(): data format %02x.%02x.%02x.%02x (format version %02x.%02x) is not a resource bundle\n",
1015 udata_printError(ds, "ures_swap(): too few bytes (%d after header) for a resource bundle\n",
1023 rootRes=ds->readUInt32(*inBundle);
1028 indexLength=udata_readInt32(ds, inIndexes[URES_INDEX_LENGTH])&0xff;
1030 udata_printError(ds, "ures_swap(): too few indexes for a 1.1+ resource bundle\n");
1035 keysTop=udata_readInt32(ds, inIndexes[URES_INDEX_KEYS_TOP]);
1037 resBottom=udata_readInt32(ds, inIndexes[URES_INDEX_16BIT_TOP]);
1041 top=udata_readInt32(ds, inIndexes[URES_INDEX_BUNDLE_TOP]);
1042 maxTableLength=udata_readInt32(ds, inIndexes[URES_INDEX_MAX_TABLE_LENGTH]);
1045 udata_printError(ds, "ures_swap(): resource top %d exceeds bundle length %d\n",
1078 udata_printError(ds, "ures_swap(): unable to allocate memory for tracking resources\n");
1091 udata_swapInvStringBlock(ds, inBundle+keysBottom, 4*(keysTop-keysBottom),
1094 udata_printError(ds, "ures_swap().udata_swapInvStringBlock(keys[%d]) failed\n", 4*(keysTop-keysBottom));
1100 ds->swapArray16(ds, inBundle+keysTop, (resBottom-keysTop)*4, outBundle+keysTop, pErrorCode);
1102 udata_printError(ds, "ures_swap().swapArray16(16-bit units[%d]) failed\n", 2*(resBottom-keysTop));
1115 udata_printError(ds, "ures_swap(): unable to allocate memory for sorting tables (max length: %d)\n",
1127 ures_swapResource(ds, inBundle, outBundle, rootRes, NULL, &tempTable, pErrorCode);
1129 udata_printError(ds, "ures_swapResource(root res=%08x) failed\n",
1141 ds->swapArray32(ds, inBundle, keysBottom*4, outBundle, pErrorCode);