Lines Matching refs:ds
305 ubrk_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outData, in ubrk_swap() argument
311 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) { in ubrk_swap()
326 …udata_printError(ds, "ubrk_swap(): data format %02x.%02x.%02x.%02x (format version %02x) is not re… in ubrk_swap()
340 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status); in ubrk_swap()
348 if (ds->readUInt32(rbbiDH->fMagic) != 0xb1a0 || in ubrk_swap()
350 ds->readUInt32(rbbiDH->fLength) < sizeof(RBBIDataHeader)) { in ubrk_swap()
351 udata_printError(ds, "ubrk_swap(): RBBI Data header is invalid.\n"); in ubrk_swap()
359 int32_t breakDataLength = ds->readUInt32(rbbiDH->fLength); in ubrk_swap()
369 … udata_printError(ds, "ubrk_swap(): too few bytes (%d after ICU Data header) for break data.\n", in ubrk_swap()
403 tableStartOffset = ds->readUInt32(rbbiDH->fFTable); in ubrk_swap()
404 tableLength = ds->readUInt32(rbbiDH->fFTableLen); in ubrk_swap()
408 UBool use8Bits = ds->readUInt32(rbbiST->fFlags) & RBBI_8BITS_ROWS; in ubrk_swap()
410 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
421 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
427 tableStartOffset = ds->readUInt32(rbbiDH->fRTable); in ubrk_swap()
428 tableLength = ds->readUInt32(rbbiDH->fRTableLen); in ubrk_swap()
432 UBool use8Bits = ds->readUInt32(rbbiST->fFlags) & RBBI_8BITS_ROWS; in ubrk_swap()
434 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap()
445 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, in ubrk_swap()
451 ucptrie_swap(ds, inBytes+ds->readUInt32(rbbiDH->fTrie), ds->readUInt32(rbbiDH->fTrieLen), in ubrk_swap()
452 outBytes+ds->readUInt32(rbbiDH->fTrie), status); in ubrk_swap()
456 uprv_memmove(outBytes+ds->readUInt32(rbbiDH->fRuleSource), in ubrk_swap()
457 inBytes+ds->readUInt32(rbbiDH->fRuleSource), in ubrk_swap()
458 ds->readUInt32(rbbiDH->fRuleSourceLen)); in ubrk_swap()
462 …ds->swapArray32(ds, inBytes+ds->readUInt32(rbbiDH->fStatusTable), ds->readUInt32(rbbiDH->fStatusTa… in ubrk_swap()
463 outBytes+ds->readUInt32(rbbiDH->fStatusTable), status); in ubrk_swap()
469 ds->swapArray32(ds, inBytes, sizeof(RBBIDataHeader), outBytes, status); in ubrk_swap()
470 ds->swapArray32(ds, outputDH->fFormatVersion, 4, outputDH->fFormatVersion, status); in ubrk_swap()