Home | History | Annotate | Download | only in common

Lines Matching refs:ds

33 utrie_swap(const UDataSwapper *ds,
44 if(ds==NULL || inData==NULL || (length>=0 && outData==NULL)) {
56 trie.signature=ds->readUInt32(inTrie->signature);
57 trie.options=ds->readUInt32(inTrie->options);
58 trie.indexLength=udata_readInt32(ds, inTrie->indexLength);
59 trie.dataLength=udata_readInt32(ds, inTrie->dataLength);
88 ds->swapArray32(ds, inTrie, sizeof(UTrieHeader), outTrie, pErrorCode);
92 ds->swapArray16(ds, inTrie+1, trie.indexLength*2, outTrie+1, pErrorCode);
93 ds->swapArray32(ds, (const uint16_t *)(inTrie+1)+trie.indexLength, trie.dataLength*4,
96 ds->swapArray16(ds, inTrie+1, (trie.indexLength+trie.dataLength)*2, outTrie+1, pErrorCode);
107 ucol_swapBinary(const UDataSwapper *ds,
123 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) {
141 header.size=udata_readInt32(ds, inHeader->size);
142 } else if((length<(42*4) || length<(header.size=udata_readInt32(ds, inHeader->size)))) {
143 udata_printError(ds, "ucol_swapBinary(): too few bytes (%d after header) for collation data\n",
149 header.magic=ds->readUInt32(inHeader->magic);
155 udata_printError(ds, "ucol_swapBinary(): magic 0x%08x or format version %02x.%02x is not a collation binary\n",
162 if(inHeader->isBigEndian!=ds->inIsBigEndian || inHeader->charSetFamily!=ds->inCharset) {
163 udata_printError(ds, "ucol_swapBinary(): endianness %d or charset %d does not match the swapper\n",
178 header.options= ds->readUInt32(inHeader->options);
179 header.UCAConsts= ds->readUInt32(inHeader->UCAConsts);
180 header.contractionUCACombos= ds->readUInt32(inHeader->contractionUCACombos);
181 header.mappingPosition= ds->readUInt32(inHeader->mappingPosition);
182 header.expansion= ds->readUInt32(inHeader->expansion);
183 header.contractionIndex= ds->readUInt32(inHeader->contractionIndex);
184 header.contractionCEs= ds->readUInt32(inHeader->contractionCEs);
185 header.contractionSize= ds->readUInt32(inHeader->contractionSize);
186 header.endExpansionCE= ds->readUInt32(inHeader->endExpansionCE);
187 header.expansionCESize= ds->readUInt32(inHeader->expansionCESize);
188 header.endExpansionCECount= udata_readInt32(ds, inHeader->endExpansionCECount);
189 header.contractionUCACombosSize=udata_readInt32(ds, inHeader->contractionUCACombosSize);
192 ds->swapArray32(ds, inHeader, (int32_t)((const char *)&inHeader->jamoSpecial-(const char *)inHeader),
196 outHeader->isBigEndian=ds->outIsBigEndian;
197 outHeader->charSetFamily=ds->outCharset;
201 ds->swapArray32(ds, inBytes+header.options, header.expansion-header.options,
214 ds->swapArray32(ds, inBytes+header.expansion, (int32_t)count,
221 ds->swapArray16(ds, inBytes+header.contractionIndex, header.contractionSize*2,
225 ds->swapArray32(ds, inBytes+header.contractionCEs, header.contractionSize*4,
232 utrie_swap(ds, inBytes+header.mappingPosition, (int32_t)count,
238 ds->swapArray32(ds, inBytes+header.endExpansionCE, header.endExpansionCECount*4,
251 ds->swapArray32(ds, inBytes+header.UCAConsts, header.contractionUCACombos-header.UCAConsts,
258 ds->swapArray16(ds, inBytes+header.contractionUCACombos, (int32_t)count,
268 ucol_swap(const UDataSwapper *ds,
275 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode);
290 udata_printError(ds, "ucol_swap(): data format %02x.%02x.%02x.%02x (format version %02x.%02x) is not a collation file\n",
298 collationSize=ucol_swapBinary(ds,
312 ucol_swapInverseUCA(const UDataSwapper *ds,
326 headerSize=udata_swapDataHeader(ds, inData, length, outData, pErrorCode);
341 udata_printError(ds, "ucol_swapInverseUCA(): data format %02x.%02x.%02x.%02x (format version %02x.%02x) is not an inverse UCA collation file\n",
362 header.byteSize=udata_readInt32(ds, inHeader->byteSize);
365 (uint32_t)(length-headerSize)<(header.byteSize=udata_readInt32(ds, inHeader->byteSize)))
367 udata_printError(ds, "ucol_swapInverseUCA(): too few bytes (%d after header) for inverse UCA collation data\n",
382 header.tableSize= ds->readUInt32(inHeader->tableSize);
383 header.contsSize= ds->readUInt32(inHeader->contsSize);
384 header.table= ds->readUInt32(inHeader->table);
385 header.conts= ds->readUInt32(inHeader->conts);
388 ds->swapArray32(ds, inHeader, 5*4, outHeader, pErrorCode);
391 ds->swapArray32(ds, inBytes+header.table, header.tableSize*3*4,
395 ds->swapArray16(ds, inBytes+header.conts, header.contsSize*U_SIZEOF_UCHAR,