Lines Matching refs:ds

302 ubrk_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outData,
308 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) {
323 udata_printError(ds, "ubrk_swap(): data format %02x.%02x.%02x.%02x (format version %02x) is not recognized\n",
337 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status);
345 if (ds->readUInt32(rbbiDH->fMagic) != 0xb1a0 ||
347 ds->readUInt32(rbbiDH->fLength) < sizeof(RBBIDataHeader)) {
348 udata_printError(ds, "ubrk_swap(): RBBI Data header is invalid.\n");
356 int32_t breakDataLength = ds->readUInt32(rbbiDH->fLength);
366 udata_printError(ds, "ubrk_swap(): too few bytes (%d after ICU Data header) for break data.\n",
400 tableStartOffset = ds->readUInt32(rbbiDH->fFTable);
401 tableLength = ds->readUInt32(rbbiDH->fFTableLen);
404 ds->swapArray32(ds, inBytes+tableStartOffset, topSize,
406 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize,
411 tableStartOffset = ds->readUInt32(rbbiDH->fRTable);
412 tableLength = ds->readUInt32(rbbiDH->fRTableLen);
415 ds->swapArray32(ds, inBytes+tableStartOffset, topSize,
417 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize,
422 tableStartOffset = ds->readUInt32(rbbiDH->fSFTable);
423 tableLength = ds->readUInt32(rbbiDH->fSFTableLen);
426 ds->swapArray32(ds, inBytes+tableStartOffset, topSize,
428 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize,
433 tableStartOffset = ds->readUInt32(rbbiDH->fSRTable);
434 tableLength = ds->readUInt32(rbbiDH->fSRTableLen);
437 ds->swapArray32(ds, inBytes+tableStartOffset, topSize,
439 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize,
444 utrie2_swap(ds, inBytes+ds->readUInt32(rbbiDH->fTrie), ds->readUInt32(rbbiDH->fTrieLen),
445 outBytes+ds->readUInt32(rbbiDH->fTrie), status);
448 ds->swapArray16(ds, inBytes+ds->readUInt32(rbbiDH->fRuleSource), ds->readUInt32(rbbiDH->fRuleSourceLen),
449 outBytes+ds->readUInt32(rbbiDH->fRuleSource), status);
452 ds->swapArray32(ds, inBytes+ds->readUInt32(rbbiDH->fStatusTable), ds->readUInt32(rbbiDH->fStatusTableLen),
453 outBytes+ds->readUInt32(rbbiDH->fStatusTable), status);
459 ds->swapArray32(ds, inBytes, sizeof(RBBIDataHeader), outBytes, status);
460 ds->swapArray32(ds, outputDH->fFormatVersion, 4, outputDH->fFormatVersion, status);