Lines Matching refs:ds

304 ubrk_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outData,  in ubrk_swap()  argument
310 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) { in ubrk_swap()
325 …udata_printError(ds, "ubrk_swap(): data format %02x.%02x.%02x.%02x (format version %02x) is not re… in ubrk_swap()
339 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status); in ubrk_swap()
352 if (ds->readUInt32(rbbiDH->fMagic) != 0xb1a0 || in ubrk_swap()
354 ds->readUInt32(rbbiDH->fLength) < sizeof(RBBIDataHeader)) in ubrk_swap()
356 udata_printError(ds, "ubrk_swap(): RBBI Data header is invalid.\n"); in ubrk_swap()
364 int32_t breakDataLength = ds->readUInt32(rbbiDH->fLength); in ubrk_swap()
374 … udata_printError(ds, "ubrk_swap(): too few bytes (%d after ICU Data header) for break data.\n", in ubrk_swap()
408 tableStartOffset = ds->readUInt32(rbbiDH->fFTable); in ubrk_swap()
409 tableLength = ds->readUInt32(rbbiDH->fFTableLen); in ubrk_swap()
412 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
414 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
419 tableStartOffset = ds->readUInt32(rbbiDH->fRTable); in ubrk_swap()
420 tableLength = ds->readUInt32(rbbiDH->fRTableLen); in ubrk_swap()
423 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
425 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
430 tableStartOffset = ds->readUInt32(rbbiDH->fSFTable); in ubrk_swap()
431 tableLength = ds->readUInt32(rbbiDH->fSFTableLen); in ubrk_swap()
434 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
436 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
441 tableStartOffset = ds->readUInt32(rbbiDH->fSRTable); in ubrk_swap()
442 tableLength = ds->readUInt32(rbbiDH->fSRTableLen); in ubrk_swap()
445 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
447 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
452 utrie_swap(ds, inBytes+ds->readUInt32(rbbiDH->fTrie), ds->readUInt32(rbbiDH->fTrieLen), in ubrk_swap()
453 outBytes+ds->readUInt32(rbbiDH->fTrie), status); in ubrk_swap()
456ds->swapArray16(ds, inBytes+ds->readUInt32(rbbiDH->fRuleSource), ds->readUInt32(rbbiDH->fRuleSourc… in ubrk_swap()
457 outBytes+ds->readUInt32(rbbiDH->fRuleSource), status); in ubrk_swap()
460ds->swapArray32(ds, inBytes+ds->readUInt32(rbbiDH->fStatusTable), ds->readUInt32(rbbiDH->fStatusTa… in ubrk_swap()
461 outBytes+ds->readUInt32(rbbiDH->fStatusTable), status); in ubrk_swap()
467 ds->swapArray32(ds, inBytes, sizeof(RBBIDataHeader), outBytes, status); in ubrk_swap()
468 ds->swapArray32(ds, outputDH->fFormatVersion, 4, outputDH->fFormatVersion, status); in ubrk_swap()