Home
last modified time | relevance | path

Searched refs:indexesLength (Results 1 – 10 of 10) sorted by relevance

/external/icu/icu4c/source/i18n/
Dcollationdatareader.cpp77 int32_t indexesLength = inIndexes[IX_INDEXES_LENGTH]; in read() local
78 if(indexesLength < 2 || (0 <= inLength && inLength < indexesLength * 4)) { in read()
93 if(indexesLength > IX_TOTAL_SIZE) { in read()
95 } else if(indexesLength > IX_REORDER_CODES_OFFSET) { in read()
96 length = inIndexes[indexesLength - 1]; in read()
111 offset = getIndex(inIndexes, indexesLength, index); in read()
112 length = getIndex(inIndexes, indexesLength, index + 1) - offset; in read()
143 offset = getIndex(inIndexes, indexesLength, index); in read()
144 length = getIndex(inIndexes, indexesLength, index + 1) - offset; in read()
163 offset = getIndex(inIndexes, indexesLength, index); in read()
[all …]
Dcollationdatawriter.cpp114 int32_t indexesLength; in write() local
130 indexesLength = CollationDataReader::IX_TOTAL_SIZE + 1; in write()
139 indexesLength = CollationDataReader::IX_OPTIONS + 1; // no limit offset here in write()
142 indexesLength = CollationDataReader::IX_REORDER_TABLE_OFFSET + 2; in write()
148 indexesLength = CollationDataReader::IX_CE32S_OFFSET + 2; in write()
150 indexesLength = CollationDataReader::IX_CONTEXTS_OFFSET + 2; in write()
154 indexesLength = CollationDataReader::IX_UNSAFE_BWD_OFFSET + 2; in write()
158 indexesLength = CollationDataReader::IX_FAST_LATIN_TABLE_OFFSET + 2; in write()
193 int32_t sum = headerSize + (indexesLength + reorderCodesLength) * 4; in write()
215 indexes[CollationDataReader::IX_INDEXES_LENGTH] = indexesLength; in write()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationDataReader.java110 int indexesLength = inBytes.getInt(); // inIndexes[IX_INDEXES_LENGTH] in read() local
111 if(indexesLength < 2 || inLength < indexesLength * 4) { in read()
115 inIndexes[0] = indexesLength; in read()
116 for(int i = 1; i < indexesLength && i < inIndexes.length; ++i) { in read()
119 for(int i = indexesLength; i < inIndexes.length; ++i) { in read()
122 if(indexesLength > inIndexes.length) { in read()
123 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read()
136 if(indexesLength > IX_TOTAL_SIZE) { in read()
138 } else if(indexesLength > IX_REORDER_CODES_OFFSET) { in read()
139 length = inIndexes[indexesLength - 1]; in read()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationDataReader.java111 int indexesLength = inBytes.getInt(); // inIndexes[IX_INDEXES_LENGTH] in read() local
112 if(indexesLength < 2 || inLength < indexesLength * 4) { in read()
116 inIndexes[0] = indexesLength; in read()
117 for(int i = 1; i < indexesLength && i < inIndexes.length; ++i) { in read()
120 for(int i = indexesLength; i < inIndexes.length; ++i) { in read()
123 if(indexesLength > inIndexes.length) { in read()
124 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read()
137 if(indexesLength > IX_TOTAL_SIZE) { in read()
139 } else if(indexesLength > IX_REORDER_CODES_OFFSET) { in read()
140 length = inIndexes[indexesLength - 1]; in read()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUPropertyAliases.java82 int indexesLength=bytes.getInt()/4; // inIndexes[IX_VALUE_MAPS_OFFSET]/4 in load() local
83 if(indexesLength<8) { // formatVersion 2 initially has 8 indexes in load()
86 int[] inIndexes=new int[indexesLength]; in load()
87 inIndexes[0]=indexesLength*4; in load()
88 for(int i=1; i<indexesLength; ++i) { in load()
DNormalizer2Impl.java454 int indexesLength=bytes.getInt()/4; // inIndexes[IX_NORM_TRIE_OFFSET]/4 in load() local
455 if(indexesLength<=IX_MIN_LCCC_CP) { in load()
458 int[] inIndexes=new int[indexesLength]; in load()
459 inIndexes[0]=indexesLength*4; in load()
460 for(int i=1; i<indexesLength; ++i) { in load()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUPropertyAliases.java83 int indexesLength=bytes.getInt()/4; // inIndexes[IX_VALUE_MAPS_OFFSET]/4 in load() local
84 if(indexesLength<8) { // formatVersion 2 initially has 8 indexes in load()
87 int[] inIndexes=new int[indexesLength]; in load()
88 inIndexes[0]=indexesLength*4; in load()
89 for(int i=1; i<indexesLength; ++i) { in load()
DNormalizer2Impl.java463 int indexesLength=bytes.getInt()/4; // inIndexes[IX_NORM_TRIE_OFFSET]/4 in load() local
464 if(indexesLength<=IX_MIN_LCCC_CP) { in load()
467 int[] inIndexes=new int[indexesLength]; in load()
468 inIndexes[0]=indexesLength*4; in load()
469 for(int i=1; i<indexesLength; ++i) { in load()
/external/icu/icu4c/source/common/
Ducol_swp.cpp324 int32_t indexesLength=indexes[0]=udata_readInt32(ds, inIndexes[0]); in swapFormatVersion4() local
325 if(0<=length && length<(indexesLength*4)) { in swapFormatVersion4()
333 for(int32_t i=1; i<=IX_TOTAL_SIZE && i<indexesLength; ++i) { in swapFormatVersion4()
336 for(int32_t i=indexesLength; i<=IX_TOTAL_SIZE; ++i) { in swapFormatVersion4()
343 if(indexesLength>IX_TOTAL_SIZE) { in swapFormatVersion4()
345 } else if(indexesLength>IX_REORDER_CODES_OFFSET) { in swapFormatVersion4()
346 size=indexes[indexesLength-1]; in swapFormatVersion4()
348 size=indexesLength*4; in swapFormatVersion4()
366 ds->swapArray32(ds, inBytes, indexesLength * 4, outBytes, &errorCode); in swapFormatVersion4()
Dloadednormalizer2impl.cpp87 int32_t indexesLength=inIndexes[IX_NORM_TRIE_OFFSET]/4; in load() local
88 if(indexesLength<=IX_MIN_LCCC_CP) { in load()