• Home
  • Raw
  • Download

Lines Matching refs:header

62     UCATableHeader header;  in ucol_looksLikeCollationBinary()  local
63 uprv_memset(&header, 0, sizeof(header)); 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()
72 header.magic==UCOL_HEADER_MAGIC && in ucol_looksLikeCollationBinary()
98 UCATableHeader header; in swapFormatVersion3() local
123 uprv_memset(&header, 0, sizeof(header)); 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()
133 header.magic=ds->readUInt32(inHeader->magic); in swapFormatVersion3()
135 header.magic==UCOL_HEADER_MAGIC && in swapFormatVersion3()
140 header.magic, in swapFormatVersion3()
156 uprv_memcpy(outBytes, inBytes, header.size); 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()
180 …->swapArray32(ds, &(inHeader->scriptToLeadByte), sizeof(header.scriptToLeadByte) + sizeof(header.l… in swapFormatVersion3()
187 if(header.options!=0) { in swapFormatVersion3()
188 ds->swapArray32(ds, inBytes+header.options, header.expansion-header.options, in swapFormatVersion3()
189 outBytes+header.options, pErrorCode); in swapFormatVersion3()
193 if(header.mappingPosition!=0 && header.expansion!=0) { in swapFormatVersion3()
194 if(header.contractionIndex!=0) { in swapFormatVersion3()
196 count=header.contractionIndex-header.expansion; in swapFormatVersion3()
199 count=header.mappingPosition-header.expansion; in swapFormatVersion3()
201 ds->swapArray32(ds, inBytes+header.expansion, (int32_t)count, in swapFormatVersion3()
202 outBytes+header.expansion, pErrorCode); in swapFormatVersion3()
206 if(header.contractionSize!=0) { in swapFormatVersion3()
208 ds->swapArray16(ds, inBytes+header.contractionIndex, header.contractionSize*2, in swapFormatVersion3()
209 outBytes+header.contractionIndex, pErrorCode); in swapFormatVersion3()
212 ds->swapArray32(ds, inBytes+header.contractionCEs, header.contractionSize*4, in swapFormatVersion3()
213 outBytes+header.contractionCEs, pErrorCode); in swapFormatVersion3()
217 if(header.mappingPosition!=0) { in swapFormatVersion3()
218 count=header.endExpansionCE-header.mappingPosition; in swapFormatVersion3()
219 utrie_swap(ds, inBytes+header.mappingPosition, (int32_t)count, in swapFormatVersion3()
220 outBytes+header.mappingPosition, pErrorCode); in swapFormatVersion3()
224 if(header.endExpansionCECount!=0) { in swapFormatVersion3()
225 ds->swapArray32(ds, inBytes+header.endExpansionCE, header.endExpansionCECount*4, in swapFormatVersion3()
226 outBytes+header.endExpansionCE, pErrorCode); in swapFormatVersion3()
232 if(header.UCAConsts!=0) { in swapFormatVersion3()
237 … ds->swapArray32(ds, inBytes+header.UCAConsts, header.contractionUCACombos-header.UCAConsts, in swapFormatVersion3()
238 outBytes+header.UCAConsts, pErrorCode); in swapFormatVersion3()
242 if(header.contractionUCACombosSize!=0) { in swapFormatVersion3()
243 … count=header.contractionUCACombosSize*inHeader->contractionUCACombosWidth*U_SIZEOF_UCHAR; in swapFormatVersion3()
244 ds->swapArray16(ds, inBytes+header.contractionUCACombos, (int32_t)count, in swapFormatVersion3()
245 outBytes+header.contractionUCACombos, pErrorCode); in swapFormatVersion3()
249 if(header.scriptToLeadByte!=0) { 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()
254 outBytes+header.scriptToLeadByte, pErrorCode); in swapFormatVersion3()
258 if(header.leadByteToScript!=0) { 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()
263 outBytes+header.leadByteToScript, pErrorCode); in swapFormatVersion3()
267 return header.size; in swapFormatVersion3()
536 InverseUCATableHeader header={ 0,0,0,0,0,{0,0,0,0},{0,0,0,0,0,0,0,0} }; in ucol_swapInverseUCA() local
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()
589 uprv_memcpy(outBytes, inBytes, header.byteSize); 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()
604 ds->swapArray32(ds, inBytes+header.table, header.tableSize*3*4, in ucol_swapInverseUCA()
605 outBytes+header.table, pErrorCode); in ucol_swapInverseUCA()
608 ds->swapArray16(ds, inBytes+header.conts, header.contsSize*U_SIZEOF_UCHAR, in ucol_swapInverseUCA()
609 outBytes+header.conts, pErrorCode); in ucol_swapInverseUCA()
612 return headerSize+header.byteSize; in ucol_swapInverseUCA()