Lines Matching refs:ds
283 ubrk_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outData, in ubrk_swap() argument
289 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) { in ubrk_swap()
304 …udata_printError(ds, "ubrk_swap(): data format %02x.%02x.%02x.%02x (format version %02x) is not re… in ubrk_swap()
318 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status); in ubrk_swap()
326 if (ds->readUInt32(rbbiDH->fMagic) != 0xb1a0 || in ubrk_swap()
328 ds->readUInt32(rbbiDH->fLength) < sizeof(RBBIDataHeader)) { in ubrk_swap()
329 udata_printError(ds, "ubrk_swap(): RBBI Data header is invalid.\n"); in ubrk_swap()
337 int32_t breakDataLength = ds->readUInt32(rbbiDH->fLength); in ubrk_swap()
347 … udata_printError(ds, "ubrk_swap(): too few bytes (%d after ICU Data header) for break data.\n", in ubrk_swap()
381 tableStartOffset = ds->readUInt32(rbbiDH->fFTable); in ubrk_swap()
382 tableLength = ds->readUInt32(rbbiDH->fFTableLen); in ubrk_swap()
385 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
387 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
392 tableStartOffset = ds->readUInt32(rbbiDH->fRTable); in ubrk_swap()
393 tableLength = ds->readUInt32(rbbiDH->fRTableLen); in ubrk_swap()
396 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
398 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
403 utrie2_swap(ds, inBytes+ds->readUInt32(rbbiDH->fTrie), ds->readUInt32(rbbiDH->fTrieLen), in ubrk_swap()
404 outBytes+ds->readUInt32(rbbiDH->fTrie), status); in ubrk_swap()
407 …ds->swapArray16(ds, inBytes+ds->readUInt32(rbbiDH->fRuleSource), ds->readUInt32(rbbiDH->fRuleSourc… in ubrk_swap()
408 outBytes+ds->readUInt32(rbbiDH->fRuleSource), status); in ubrk_swap()
411 …ds->swapArray32(ds, inBytes+ds->readUInt32(rbbiDH->fStatusTable), ds->readUInt32(rbbiDH->fStatusTa… in ubrk_swap()
412 outBytes+ds->readUInt32(rbbiDH->fStatusTable), status); in ubrk_swap()
418 ds->swapArray32(ds, inBytes, sizeof(RBBIDataHeader), outBytes, status); in ubrk_swap()
419 ds->swapArray32(ds, outputDH->fFormatVersion, 4, outputDH->fFormatVersion, status); in ubrk_swap()