• Home
  • Raw
  • Download

Lines Matching refs:ds

34 ucol_looksLikeCollationBinary(const UDataSwapper *ds,  in ucol_looksLikeCollationBinary()  argument
36 if(ds==NULL || inData==NULL || length<-1) { in ucol_looksLikeCollationBinary()
42 (void)udata_swapDataHeader(ds, inData, -1, NULL, &errorCode); in ucol_looksLikeCollationBinary()
65 header.size=udata_readInt32(ds, inHeader->size); in ucol_looksLikeCollationBinary()
66 } else if((length<(42*4) || length<(header.size=udata_readInt32(ds, inHeader->size)))) { in ucol_looksLikeCollationBinary()
70 header.magic=ds->readUInt32(inHeader->magic); in ucol_looksLikeCollationBinary()
79 if(inHeader->isBigEndian!=ds->inIsBigEndian || inHeader->charSetFamily!=ds->inCharset) { in ucol_looksLikeCollationBinary()
90 swapFormatVersion3(const UDataSwapper *ds, in swapFormatVersion3() argument
106 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) { in swapFormatVersion3()
125 header.size=udata_readInt32(ds, inHeader->size); in swapFormatVersion3()
126 } else if((length<(42*4) || length<(header.size=udata_readInt32(ds, inHeader->size)))) { in swapFormatVersion3()
127 …udata_printError(ds, "ucol_swap(formatVersion=3): too few bytes (%d after header) for collation da… in swapFormatVersion3()
133 header.magic=ds->readUInt32(inHeader->magic); in swapFormatVersion3()
139 …udata_printError(ds, "ucol_swap(formatVersion=3): magic 0x%08x or format version %02x.%02x is not … in swapFormatVersion3()
146 if(inHeader->isBigEndian!=ds->inIsBigEndian || inHeader->charSetFamily!=ds->inCharset) { in swapFormatVersion3()
147 …udata_printError(ds, "ucol_swap(formatVersion=3): endianness %d or charset %d does not match the s… in swapFormatVersion3()
162 header.options= ds->readUInt32(inHeader->options); in swapFormatVersion3()
163 header.UCAConsts= ds->readUInt32(inHeader->UCAConsts); in swapFormatVersion3()
164 header.contractionUCACombos= ds->readUInt32(inHeader->contractionUCACombos); in swapFormatVersion3()
165 header.mappingPosition= ds->readUInt32(inHeader->mappingPosition); in swapFormatVersion3()
166 header.expansion= ds->readUInt32(inHeader->expansion); in swapFormatVersion3()
167 header.contractionIndex= ds->readUInt32(inHeader->contractionIndex); in swapFormatVersion3()
168 header.contractionCEs= ds->readUInt32(inHeader->contractionCEs); in swapFormatVersion3()
169 header.contractionSize= ds->readUInt32(inHeader->contractionSize); in swapFormatVersion3()
170 header.endExpansionCE= ds->readUInt32(inHeader->endExpansionCE); in swapFormatVersion3()
171 header.expansionCESize= ds->readUInt32(inHeader->expansionCESize); in swapFormatVersion3()
172 header.endExpansionCECount= udata_readInt32(ds, inHeader->endExpansionCECount); in swapFormatVersion3()
173 header.contractionUCACombosSize=udata_readInt32(ds, inHeader->contractionUCACombosSize); in swapFormatVersion3()
174 header.scriptToLeadByte= ds->readUInt32(inHeader->scriptToLeadByte); in swapFormatVersion3()
175 header.leadByteToScript= ds->readUInt32(inHeader->leadByteToScript); in swapFormatVersion3()
178ds->swapArray32(ds, inHeader, (int32_t)((const char *)&inHeader->jamoSpecial-(const char *)inHeade… in swapFormatVersion3()
180ds->swapArray32(ds, &(inHeader->scriptToLeadByte), sizeof(header.scriptToLeadByte) + sizeof(header… in swapFormatVersion3()
183 outHeader->isBigEndian=ds->outIsBigEndian; in swapFormatVersion3()
184 outHeader->charSetFamily=ds->outCharset; in swapFormatVersion3()
188 ds->swapArray32(ds, inBytes+header.options, header.expansion-header.options, in swapFormatVersion3()
201 ds->swapArray32(ds, inBytes+header.expansion, (int32_t)count, in swapFormatVersion3()
208 ds->swapArray16(ds, inBytes+header.contractionIndex, header.contractionSize*2, in swapFormatVersion3()
212 ds->swapArray32(ds, inBytes+header.contractionCEs, header.contractionSize*4, in swapFormatVersion3()
219 utrie_swap(ds, inBytes+header.mappingPosition, (int32_t)count, in swapFormatVersion3()
225 ds->swapArray32(ds, inBytes+header.endExpansionCE, header.endExpansionCECount*4, in swapFormatVersion3()
237ds->swapArray32(ds, inBytes+header.UCAConsts, header.contractionUCACombos-header.UCAConsts, in swapFormatVersion3()
244 ds->swapArray16(ds, inBytes+header.contractionUCACombos, (int32_t)count, in swapFormatVersion3()
250 …int indexCount = ds->readUInt16(*((uint16_t*)(inBytes+header.scriptToLeadByte))); // each entry = … in swapFormatVersion3()
251 …int dataCount = ds->readUInt16(*((uint16_t*)(inBytes+header.scriptToLeadByte + 2))); // each entry… in swapFormatVersion3()
252 ds->swapArray16(ds, inBytes+header.scriptToLeadByte, in swapFormatVersion3()
259 …int indexCount = ds->readUInt16(*((uint16_t*)(inBytes+header.leadByteToScript))); // each entry = … in swapFormatVersion3()
260 …int dataCount = ds->readUInt16(*((uint16_t*)(inBytes+header.leadByteToScript + 2))); // each entry… in swapFormatVersion3()
261 ds->swapArray16(ds, inBytes+header.leadByteToScript, in swapFormatVersion3()
304 swapFormatVersion4(const UDataSwapper *ds, in swapFormatVersion4() argument
317 udata_printError(ds, "ucol_swap(formatVersion=4): too few bytes " in swapFormatVersion4()
324 int32_t indexesLength=indexes[0]=udata_readInt32(ds, inIndexes[0]); in swapFormatVersion4()
326 udata_printError(ds, "ucol_swap(formatVersion=4): too few bytes " in swapFormatVersion4()
334 indexes[i]=udata_readInt32(ds, inIndexes[i]); in swapFormatVersion4()
353 udata_printError(ds, "ucol_swap(formatVersion=4): too few bytes " in swapFormatVersion4()
366 ds->swapArray32(ds, inBytes, indexesLength * 4, outBytes, &errorCode); in swapFormatVersion4()
379 ds->swapArray32(ds, inBytes + offset, length, outBytes + offset, &errorCode); in swapFormatVersion4()
388 utrie2_swap(ds, inBytes + offset, length, outBytes + offset, &errorCode); in swapFormatVersion4()
395 … udata_printError(ds, "ucol_swap(formatVersion=4): unknown data at IX_RESERVED8_OFFSET\n", length); in swapFormatVersion4()
404 ds->swapArray64(ds, inBytes + offset, length, outBytes + offset, &errorCode); in swapFormatVersion4()
411 …udata_printError(ds, "ucol_swap(formatVersion=4): unknown data at IX_RESERVED10_OFFSET\n", length); in swapFormatVersion4()
420 ds->swapArray32(ds, inBytes + offset, length, outBytes + offset, &errorCode); in swapFormatVersion4()
427 ds->swapArray32(ds, inBytes + offset, length, outBytes + offset, &errorCode); in swapFormatVersion4()
434 ds->swapArray16(ds, inBytes + offset, length, outBytes + offset, &errorCode); in swapFormatVersion4()
441 ds->swapArray16(ds, inBytes + offset, length, outBytes + offset, &errorCode); in swapFormatVersion4()
448 ds->swapArray16(ds, inBytes + offset, length, outBytes + offset, &errorCode); in swapFormatVersion4()
455 ds->swapArray16(ds, inBytes + offset, length, outBytes + offset, &errorCode); in swapFormatVersion4()
464 …udata_printError(ds, "ucol_swap(formatVersion=4): unknown data at IX_RESERVED18_OFFSET\n", length); in swapFormatVersion4()
476 ucol_swap(const UDataSwapper *ds, in ucol_swap() argument
482 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucol_swap()
486 return swapFormatVersion3(ds, inData, length, outData, pErrorCode); in ucol_swap()
498 udata_printError(ds, "ucol_swap(): data format %02x.%02x.%02x.%02x " in ucol_swap()
512 collationSize=swapFormatVersion4(ds, inData, length, outData, *pErrorCode); in ucol_swap()
514 collationSize=swapFormatVersion3(ds, inData, length, outData, pErrorCode); in ucol_swap()
525 ucol_swapInverseUCA(const UDataSwapper *ds, in ucol_swapInverseUCA() argument
539 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode); in ucol_swapInverseUCA()
554 …udata_printError(ds, "ucol_swapInverseUCA(): data format %02x.%02x.%02x.%02x (format version %02x.… in ucol_swapInverseUCA()
575 header.byteSize=udata_readInt32(ds, inHeader->byteSize); in ucol_swapInverseUCA()
578 (uint32_t)(length-headerSize)<(header.byteSize=udata_readInt32(ds, inHeader->byteSize))) in ucol_swapInverseUCA()
580 …udata_printError(ds, "ucol_swapInverseUCA(): too few bytes (%d after header) for inverse UCA colla… in ucol_swapInverseUCA()
595 header.tableSize= ds->readUInt32(inHeader->tableSize); in ucol_swapInverseUCA()
596 header.contsSize= ds->readUInt32(inHeader->contsSize); in ucol_swapInverseUCA()
597 header.table= ds->readUInt32(inHeader->table); in ucol_swapInverseUCA()
598 header.conts= ds->readUInt32(inHeader->conts); in ucol_swapInverseUCA()
601 ds->swapArray32(ds, inHeader, 5*4, outHeader, pErrorCode); in ucol_swapInverseUCA()
604 ds->swapArray32(ds, inBytes+header.table, header.tableSize*3*4, in ucol_swapInverseUCA()
608 ds->swapArray16(ds, inBytes+header.conts, header.contsSize*U_SIZEOF_UCHAR, in ucol_swapInverseUCA()