• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ICU-531.30/icuSources/common/

Lines Matching refs:ds

276 ubrk_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outData,
282 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) {
297 udata_printError(ds, "ubrk_swap(): data format %02x.%02x.%02x.%02x (format version %02x) is not recognized\n",
311 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status);
324 if (ds->readUInt32(rbbiDH->fMagic) != 0xb1a0 ||
326 ds->readUInt32(rbbiDH->fLength) < sizeof(RBBIDataHeader))
328 udata_printError(ds, "ubrk_swap(): RBBI Data header is invalid.\n");
336 int32_t breakDataLength = ds->readUInt32(rbbiDH->fLength);
346 udata_printError(ds, "ubrk_swap(): too few bytes (%d after ICU Data header) for break data.\n",
380 tableStartOffset = ds->readUInt32(rbbiDH->fFTable);
381 tableLength = ds->readUInt32(rbbiDH->fFTableLen);
384 ds->swapArray32(ds, inBytes+tableStartOffset, topSize,
386 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize,
391 tableStartOffset = ds->readUInt32(rbbiDH->fRTable);
392 tableLength = ds->readUInt32(rbbiDH->fRTableLen);
395 ds->swapArray32(ds, inBytes+tableStartOffset, topSize,
397 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize,
402 tableStartOffset = ds->readUInt32(rbbiDH->fSFTable);
403 tableLength = ds->readUInt32(rbbiDH->fSFTableLen);
406 ds->swapArray32(ds, inBytes+tableStartOffset, topSize,
408 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize,
413 tableStartOffset = ds->readUInt32(rbbiDH->fSRTable);
414 tableLength = ds->readUInt32(rbbiDH->fSRTableLen);
417 ds->swapArray32(ds, inBytes+tableStartOffset, topSize,
419 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize,
424 utrie_swap(ds, inBytes+ds->readUInt32(rbbiDH->fTrie), ds->readUInt32(rbbiDH->fTrieLen),
425 outBytes+ds->readUInt32(rbbiDH->fTrie), status);
428 ds->swapArray16(ds, inBytes+ds->readUInt32(rbbiDH->fRuleSource), ds->readUInt32(rbbiDH->fRuleSourceLen),
429 outBytes+ds->readUInt32(rbbiDH->fRuleSource), status);
432 ds->swapArray32(ds, inBytes+ds->readUInt32(rbbiDH->fStatusTable), ds->readUInt32(rbbiDH->fStatusTableLen),
433 outBytes+ds->readUInt32(rbbiDH->fStatusTable), status);
439 ds->swapArray32(ds, inBytes, sizeof(RBBIDataHeader), outBytes, status);
440 ds->swapArray32(ds, outputDH->fFormatVersion, 4, outputDH->fFormatVersion, status);