/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationDataReader.java | 98 static void read(CollationTailoring base, ByteBuffer inBytes, in read() argument 100 tailoring.version = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in read() 105 int inLength = inBytes.remaining(); in read() 109 int indexesLength = inBytes.getInt(); // inIndexes[IX_INDEXES_LENGTH] in read() 116 inIndexes[i] = inBytes.getInt(); in read() 122 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read() 159 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 175 ICUBinary.skipBytes(inBytes, length); in read() 190 inBytes.get(reorderTable); in read() 196 ICUBinary.skipBytes(inBytes, length); in read() [all …]
|
D | CollationLoader.java | 202 ByteBuffer inBytes = binary.getBinary(); in loadTailoring() local 204 CollationDataReader.read(root, inBytes, t); in loadTailoring()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationDataReader.java | 97 static void read(CollationTailoring base, ByteBuffer inBytes, in read() argument 99 tailoring.version = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in read() 104 int inLength = inBytes.remaining(); in read() 108 int indexesLength = inBytes.getInt(); // inIndexes[IX_INDEXES_LENGTH] in read() 115 inIndexes[i] = inBytes.getInt(); in read() 121 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read() 158 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 174 ICUBinary.skipBytes(inBytes, length); in read() 189 inBytes.get(reorderTable); in read() 195 ICUBinary.skipBytes(inBytes, length); in read() [all …]
|
D | CollationLoader.java | 200 ByteBuffer inBytes = binary.getBinary(); in loadTailoring() local 202 CollationDataReader.read(root, inBytes, t); in loadTailoring()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | swapimpl.cpp | 101 const uint8_t *inBytes=static_cast<const uint8_t *>(inData)+headerSize; in upname_swap() local 115 const int32_t *inIndexes=reinterpret_cast<const int32_t *>(inBytes); in upname_swap() 130 ds->swapArray32(ds, inBytes, numBytesIndexesAndValueMaps, outBytes, pErrorCode); in upname_swap() 133 if(inBytes!=outBytes) { in upname_swap() 135 inBytes+numBytesIndexesAndValueMaps, in upname_swap() 312 const uint8_t *inBytes; in ucase_swap() local 346 inBytes=(const uint8_t *)inData+headerSize; in ucase_swap() 349 inIndexes=(const int32_t *)inBytes; in ucase_swap() 378 if(inBytes!=outBytes) { in ucase_swap() 379 uprv_memcpy(outBytes, inBytes, size); in ucase_swap() [all …]
|
D | pkgitems.cpp | 367 const uint8_t *inBytes, int32_t length, in ures_enumDependencies() argument 373 res_read(&resData, pInfo, inBytes, length, pErrorCode); in ures_enumDependencies() 445 const uint8_t *inBytes, int32_t length, in ucnv_enumDependencies() argument 466 inStaticData=(const UConverterStaticData *)inBytes; in ucnv_enumDependencies() 477 inBytes+=staticDataSize; in ucnv_enumDependencies() 486 inMBCSHeader=(const _MBCSHeader *)inBytes; in ucnv_enumDependencies() 529 const char *inBaseName=(const char *)inBytes+mbcsHeaderLength*4; in ucnv_enumDependencies() 615 const uint8_t *inBytes=pItem->data+itemHeaderLength; in enumDependencies() local 618 … ucnv_enumDependencies(ds, pItem->name, pInfo, inBytes, length, check, context, &errorCode); in enumDependencies()
|
D | package.cpp | 447 const uint8_t *inBytes; in readPackage() local 504 inBytes=(const uint8_t *)inData+headerLength; in readPackage() 505 inEntries=(const UDataOffsetTOCEntry *)(inBytes+4); in readPackage() 513 itemCount=udata_readInt32(ds, *(const int32_t *)inBytes); in readPackage() 551 while(itemLength>0 && inBytes[stringsOffset+itemLength-1]!=0) { in readPackage() 561 ds->swapInvChars(ds, inBytes+stringsOffset, itemLength, inItemStrings, &errorCode); in readPackage() 644 items[i].data=(uint8_t *)inBytes+ds->readUInt32(inEntries[i].dataOffset); in readPackage()
|
/external/icu/icu4c/source/common/ |
D | ucol_swp.cpp | 166 const uint8_t *inBytes; in swapFormatVersion3() local 184 inBytes=(const uint8_t *)inData; in swapFormatVersion3() 228 if(inBytes!=outBytes) { in swapFormatVersion3() 229 uprv_memcpy(outBytes, inBytes, header.size); in swapFormatVersion3() 261 ds->swapArray32(ds, inBytes+header.options, header.expansion-header.options, in swapFormatVersion3() 274 ds->swapArray32(ds, inBytes+header.expansion, (int32_t)count, in swapFormatVersion3() 281 ds->swapArray16(ds, inBytes+header.contractionIndex, header.contractionSize*2, in swapFormatVersion3() 285 ds->swapArray32(ds, inBytes+header.contractionCEs, header.contractionSize*4, in swapFormatVersion3() 292 utrie_swap(ds, inBytes+header.mappingPosition, (int32_t)count, in swapFormatVersion3() 298 ds->swapArray32(ds, inBytes+header.endExpansionCE, header.endExpansionCECount*4, in swapFormatVersion3() [all …]
|
D | rbbidata.cpp | 350 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in ubrk_swap() local 351 RBBIDataHeader *rbbiDH = (RBBIDataHeader *)inBytes; in ubrk_swap() 397 if (inBytes != outBytes) { 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() 423 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap() 425 ds->swapArray16(ds, inBytes+tableStartOffset+topSize, tableLength-topSize, 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() 445 ds->swapArray32(ds, inBytes+tableStartOffset, topSize, in ubrk_swap() [all …]
|
D | ucnv_bld.cpp | 1325 const uint8_t *inBytes; in ucnv_swap() local 1371 inBytes=(const uint8_t *)inData+headerSize; in ucnv_swap() 1375 inStaticData=(const UConverterStaticData *)inBytes; in ucnv_swap() 1411 inBytes+=staticDataSize; in ucnv_swap() 1420 inMBCSHeader=(const _MBCSHeader *)inBytes; in ucnv_swap() 1515 inExtIndexes=(const int32_t *)(inBytes+extOffset); in ucnv_swap() 1528 if(inBytes!=outBytes) { in ucnv_swap() 1529 uprv_memcpy(outBytes, inBytes, size); in ucnv_swap() 1544 const char *inBaseName=(const char *)inBytes+count; in ucnv_swap() 1554 ds->swapArray32(ds, inBytes+offset, (int32_t)count, in ucnv_swap() [all …]
|
D | dictionarydata.cpp | 164 const uint8_t *inBytes; in udict_swap() local 184 inBytes = (const uint8_t *)inData + headerSize; in udict_swap() 187 inIndexes = (const int32_t *)inBytes; in udict_swap() 210 if (inBytes != outBytes) { in udict_swap() 211 uprv_memcpy(outBytes, inBytes, size); in udict_swap() 215 ds->swapArray32(ds, inBytes, sizeof(indexes), outBytes, pErrorCode); in udict_swap() 221 … ds->swapArray16(ds, inBytes + offset, nextOffset - offset, outBytes + offset, pErrorCode); in udict_swap()
|
D | ucnv_u8.c | 110 int32_t i, inBytes; in ucnv_toUnicode_UTF8() local 115 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8() 136 inBytes = bytesFromUTF8[ch]; /* lookup current sequence length */ in ucnv_toUnicode_UTF8() 140 while (i < inBytes) in ucnv_toUnicode_UTF8() 157 cnv->mode = inBytes; in ucnv_toUnicode_UTF8() 164 ch -= offsetsFromUTF8[inBytes]; in ucnv_toUnicode_UTF8() 178 if (i == inBytes && ch <= MAXIMUM_UTF && ch >= utf8_minChar32[i] && in ucnv_toUnicode_UTF8() 240 int32_t i, inBytes; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() local 245 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() 265 inBytes = bytesFromUTF8[ch]; in ucnv_toUnicode_UTF8_OFFSETS_LOGIC() [all …]
|
D | unames.cpp | 1833 const uint8_t *inBytes; in uchar_swapNames() local 1865 inBytes=(const uint8_t *)inData+headerSize; in uchar_swapNames() 1868 algNamesOffset=ds->readUInt32(((const uint32_t *)inBytes)[3]); in uchar_swapNames() 1872 (uint32_t)length<(algNamesOffset=ds->readUInt32(((const uint32_t *)inBytes)[3])) in uchar_swapNames() 1884 count=ds->readUInt32(*((const uint32_t *)(inBytes+offset))); in uchar_swapNames() 1888 inRange=(const AlgorithmicRange *)(inBytes+offset); in uchar_swapNames() 1902 if(inBytes!=outBytes) { in uchar_swapNames() 1903 uprv_memcpy(outBytes, inBytes, length); in uchar_swapNames() 1907 tokenStringOffset=ds->readUInt32(((const uint32_t *)inBytes)[0]); in uchar_swapNames() 1908 groupsOffset=ds->readUInt32(((const uint32_t *)inBytes)[1]); in uchar_swapNames() [all …]
|
D | loadednormalizer2impl.cpp | 82 const uint8_t *inBytes=(const uint8_t *)udata_getMemory(memory); in load() local 83 const int32_t *inIndexes=(const int32_t *)inBytes; in load() 93 inBytes+offset, nextOffset-offset, NULL, in load() 101 const uint16_t *inExtraData=(const uint16_t *)(inBytes+offset); in load() 105 const uint8_t *inSmallFCD=inBytes+offset; in load()
|
D | ucnvsel.cpp | 407 const uint8_t *inBytes = (const uint8_t *)inData + headerSize; in ucnvsel_swap() local 411 const int32_t *inIndexes = (const int32_t *)inBytes; in ucnvsel_swap() 429 if(inBytes != outBytes) { in ucnvsel_swap() 430 uprv_memcpy(outBytes, inBytes, size); in ucnvsel_swap() 437 ds->swapArray32(ds, inBytes, count, outBytes, status); in ucnvsel_swap() 442 utrie2_swap(ds, inBytes + offset, count, outBytes + offset, status); in ucnvsel_swap() 447 ds->swapArray32(ds, inBytes + offset, count, outBytes + offset, status); in ucnvsel_swap() 452 ds->swapInvChars(ds, inBytes + offset, count, outBytes + offset, status); in ucnvsel_swap()
|
D | usprep.cpp | 781 const uint8_t *inBytes; in usprep_swap() local 812 inBytes=(const uint8_t *)inData+headerSize; in usprep_swap() 815 inIndexes=(const int32_t *)inBytes; in usprep_swap() 847 if(inBytes!=outBytes) { in usprep_swap() 848 uprv_memcpy(outBytes, inBytes, size); in usprep_swap() 855 ds->swapArray32(ds, inBytes, count, outBytes, pErrorCode); in usprep_swap() 860 utrie_swap(ds, inBytes+offset, count, outBytes+offset, pErrorCode); in usprep_swap() 865 ds->swapArray16(ds, inBytes+offset, count, outBytes+offset, pErrorCode); in usprep_swap()
|
D | normalizer2impl.cpp | 2014 const uint8_t *inBytes; in unorm2_swap() local 2045 inBytes=(const uint8_t *)inData+headerSize; in unorm2_swap() 2048 inIndexes=(const int32_t *)inBytes; in unorm2_swap() 2077 if(inBytes!=outBytes) { in unorm2_swap() 2078 uprv_memcpy(outBytes, inBytes, size); in unorm2_swap() 2085 ds->swapArray32(ds, inBytes, nextOffset-offset, outBytes, pErrorCode); in unorm2_swap() 2090 utrie2_swap(ds, inBytes+offset, nextOffset-offset, outBytes+offset, pErrorCode); in unorm2_swap() 2095 ds->swapArray16(ds, inBytes+offset, nextOffset-offset, outBytes+offset, pErrorCode); in unorm2_swap()
|
/external/icu/icu4c/source/i18n/ |
D | collationdatareader.cpp | 45 CollationDataReader::read(const CollationTailoring *base, const uint8_t *inBytes, int32_t inLength, in read() argument 49 if(inBytes == NULL || (0 <= inLength && inLength < 24)) { in read() 53 const DataHeader *header = reinterpret_cast<const DataHeader *>(inBytes); in read() 64 inBytes += headerLength; in read() 70 if(inBytes == NULL || (0 <= inLength && inLength < 8)) { in read() 74 const int32_t *inIndexes = reinterpret_cast<const int32_t *>(inBytes); in read() 118 reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset); in read() 148 reorderTable = inBytes + offset; in read() 169 UTRIE2_32_VALUE_BITS, inBytes + offset, length, NULL, in read() 188 data->ces = reinterpret_cast<const int64_t *>(inBytes + offset); in read() [all …]
|
D | uspoof_impl.cpp | 766 const uint8_t *inBytes =(const uint8_t *)inData+headerSize; in uspoof_swap() local 767 SpoofDataHeader *spoofDH = (SpoofDataHeader *)inBytes; in uspoof_swap() 812 if (inBytes != outBytes) { in uspoof_swap() 819 ds->swapArray32(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap() 824 ds->swapArray16(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap() 829 ds->swapArray16(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap() 834 ds->swapArray16(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap() 839 utrie2_swap(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap() 844 utrie2_swap(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap() 849 ds->swapArray32(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status); in uspoof_swap()
|
D | collationroot.cpp | 60 const uint8_t *inBytes = static_cast<const uint8_t *>(udata_getMemory(t->memory)); in load() local 61 CollationDataReader::read(NULL, inBytes, udata_getLength(t->memory), *t, errorCode); in load()
|
D | collationdatareader.h | 100 static void read(const CollationTailoring *base, const uint8_t *inBytes, int32_t inLength,
|
/external/icu/icu4c/source/tools/icuswap/ |
D | icuswap.cpp | 341 const uint8_t *inBytes; in udata_swapPackage() local 407 inBytes=(const uint8_t *)inData+headerSize; in udata_swapPackage() 408 inEntries=(const UDataOffsetTOCEntry *)(inBytes+4); in udata_swapPackage() 412 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage() 420 itemLength=udata_swap(ds, inBytes+offset, -1, NULL, pErrorCode); in udata_swapPackage() 435 itemCount=ds->readUInt32(*(const uint32_t *)inBytes); in udata_swapPackage() 456 ds->swapArray32(ds, inBytes, 4, outBytes, pErrorCode); in udata_swapPackage() 466 udata_swapInvStringBlock(ds, inBytes+offset, itemLength, outBytes+offset, pErrorCode); in udata_swapPackage() 490 entryName=(char *)inBytes+ds->readUInt32(inEntries[i].nameOffset); in udata_swapPackage() 527 uprv_memcpy(outBytes, inBytes, 4); in udata_swapPackage() [all …]
|
/external/llvm/lib/IR/ |
D | DataLayout.cpp | 217 static unsigned inBytes(unsigned Bits) { in inBytes() function 262 unsigned PointerMemSize = inBytes(getInt(Tok)); in parseSpecifier() 271 unsigned PointerABIAlign = inBytes(getInt(Tok)); in parseSpecifier() 280 PointerPrefAlign = inBytes(getInt(Tok)); in parseSpecifier() 315 unsigned ABIAlign = inBytes(getInt(Tok)); in parseSpecifier() 324 PrefAlign = inBytes(getInt(Tok)); in parseSpecifier() 344 StackNaturalAlign = inBytes(getInt(Tok)); in parseSpecifier()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ICUResourceBundleReader.java | 185 ByteBuffer inBytes; in createInstance() local 188 inBytes = ICUBinary.getData(loader, fullName, itemPath); in createInstance() 189 if (inBytes == null) { in createInstance() 198 inBytes = ICUBinary.getByteBufferFromInputStreamAndCloseStream(stream); in createInstance() 200 return new ICUResourceBundleReader(inBytes, key.baseName, key.localeID, loader); in createInstance() 213 private ICUResourceBundleReader(ByteBuffer inBytes, in ICUResourceBundleReader() argument 216 init(inBytes); in ICUResourceBundleReader() 240 private void init(ByteBuffer inBytes) throws IOException { in init() argument 241 dataVersion = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in init() 242 int majorFormatVersion = inBytes.get(16); in init() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICUResourceBundleReader.java | 183 ByteBuffer inBytes; in createInstance() local 186 inBytes = ICUBinary.getData(loader, fullName, itemPath); in createInstance() 187 if (inBytes == null) { in createInstance() 196 inBytes = ICUBinary.getByteBufferFromInputStreamAndCloseStream(stream); in createInstance() 198 return new ICUResourceBundleReader(inBytes, key.baseName, key.localeID, loader); in createInstance() 211 private ICUResourceBundleReader(ByteBuffer inBytes, in ICUResourceBundleReader() argument 214 init(inBytes); in ICUResourceBundleReader() 238 private void init(ByteBuffer inBytes) throws IOException { in init() argument 239 dataVersion = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in init() 240 int majorFormatVersion = inBytes.get(16); in init() [all …]
|