/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationDataReader.java | 21 import com.ibm.icu.impl.ICUBinary; 101 tailoring.version = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in read() 123 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read() 160 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 176 ICUBinary.skipBytes(inBytes, length); in read() 197 ICUBinary.skipBytes(inBytes, length); in read() 224 ICUBinary.skipBytes(inBytes, length); in read() 229 ICUBinary.skipBytes(inBytes, length); in read() 238 data.ces = ICUBinary.getLongs(inBytes, length / 8, length & 7); in read() 240 ICUBinary.skipBytes(inBytes, length); in read() [all …]
|
D | CollationRoot.java | 20 import com.ibm.icu.impl.ICUBinary; 49 ByteBuffer bytes = ICUBinary.getRequiredData("coll/ucadata.icu");
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
D | CollationDataReader.java | 22 import ohos.global.icu.impl.ICUBinary; 102 tailoring.version = ICUBinary.readHeader(inBytes, DATA_FORMAT, IS_ACCEPTABLE); in read() 124 ICUBinary.skipBytes(inBytes, (indexesLength - inIndexes.length) * 4); in read() 161 reorderCodes = ICUBinary.getInts(inBytes, reorderCodesLength, length & 3); in read() 177 ICUBinary.skipBytes(inBytes, length); in read() 198 ICUBinary.skipBytes(inBytes, length); in read() 225 ICUBinary.skipBytes(inBytes, length); in read() 230 ICUBinary.skipBytes(inBytes, length); in read() 239 data.ces = ICUBinary.getLongs(inBytes, length / 8, length & 7); in read() 241 ICUBinary.skipBytes(inBytes, length); in read() [all …]
|
D | CollationRoot.java | 21 import ohos.global.icu.impl.ICUBinary; 51 ByteBuffer bytes = ICUBinary.getRequiredData("coll/ucadata.icu");
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | ICUBinaryTest.java | 21 import ohos.global.icu.impl.ICUBinary; 78 ICUBinary.Authenticate authenticate in TestReadHeader() 79 = new ICUBinary.Authenticate() { in TestReadHeader() 88 ICUBinary.readHeader(bytes, formatid, authenticate); in TestReadHeader() 95 ICUBinary.readHeader(bytes, formatid, null); in TestReadHeader() 103 ICUBinary.readHeader(bytes, formatid, authenticate); in TestReadHeader() 111 ICUBinary.readHeader(bytes, formatid, authenticate); in TestReadHeader()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | ICUBinaryTest.java | 20 import com.ibm.icu.impl.ICUBinary; 75 ICUBinary.Authenticate authenticate in TestReadHeader() 76 = new ICUBinary.Authenticate() { in TestReadHeader() 85 ICUBinary.readHeader(bytes, formatid, authenticate); in TestReadHeader() 92 ICUBinary.readHeader(bytes, formatid, null); in TestReadHeader() 100 ICUBinary.readHeader(bytes, formatid, authenticate); in TestReadHeader() 108 ICUBinary.readHeader(bytes, formatid, authenticate); in TestReadHeader()
|
/third_party/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | UConverterDataReader.java | 20 import com.ibm.icu.impl.ICUBinary; 409 private static final class IsAcceptable implements ICUBinary.Authenticate { 437 /*unicodeVersion = */ICUBinary.readHeader(byteBuffer, DATA_FORMAT_ID, IS_ACCEPTABLE); in UConverterDataReader() 506 ICUBinary.skipBytes(byteBuffer, length); in readMBCSTable() 519 ICUBinary.skipBytes(byteBuffer, length); in readMBCSTable() 545 ICUBinary.skipBytes(byteBuffer, length); in readMBCSTable() 555 mbcsTable.fromUnicodeChars = ICUBinary.getChars( in readMBCSTable() 564 mbcsTable.fromUnicodeInts = ICUBinary.getInts( in readMBCSTable() 591 ICUBinary.skipBytes(byteBuffer, skip); in readExtIndexes() 592 ByteBuffer b = ICUBinary.sliceWithOrder(byteBuffer); in readExtIndexes() [all …]
|
D | UConverterAliasDataReader.java | 15 import com.ibm.icu.impl.ICUBinary; 127 final class UConverterAliasDataReader implements ICUBinary.Authenticate { 140 /*unicodeVersion = */ICUBinary.readHeader(byteBuffer, DATA_FORMAT_ID, this); in UConverterAliasDataReader() 150 return ICUBinary.getInts(byteBuffer, n, 0); in readToc()
|
D | UConverterAlias.java | 17 import com.ibm.icu.impl.ICUBinary; 131 ByteBuffer b = ICUBinary.getRequiredData(CNVALIAS_DATA_FILE_NAME); in haveAliasData() 139 gConverterList = ICUBinary.getChars(b, tableArray[converterListIndex], 0); in haveAliasData() 140 gTagList = ICUBinary.getChars(b, tableArray[tagListIndex], 0); in haveAliasData() 141 gAliasList = ICUBinary.getChars(b, tableArray[aliasListIndex], 0); in haveAliasData() 142 gUntaggedConvArray = ICUBinary.getChars(b, tableArray[untaggedConvArrayIndex], 0); in haveAliasData() 143 gTaggedAliasArray = ICUBinary.getChars(b, tableArray[taggedAliasArrayIndex], 0); in haveAliasData() 144 gTaggedAliasLists = ICUBinary.getChars(b, tableArray[taggedAliasListsIndex], 0); in haveAliasData() 145 gOptionTable = ICUBinary.getChars(b, tableArray[optionTableIndex], 0); in haveAliasData()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | UCharacterNameReader.java | 29 final class UCharacterNameReader implements ICUBinary.Authenticate 48 ICUBinary.readHeader(bytes, DATA_FORMAT_ID_, this); in UCharacterNameReader() 71 char token[] = ICUBinary.getChars(m_byteBuffer_, count, 0); in read() 81 char group[] = ICUBinary.getChars(m_byteBuffer_, count, 0); in read() 115 ICUBinary.getVersionByteArrayFromCompactInt(DATA_FORMAT_ID_), in authenticate() 174 char factor[] = ICUBinary.getChars(m_byteBuffer_, variant, 0); in readAlg()
|
D | StringPrepDataReader.java | 27 public final class StringPrepDataReader implements ICUBinary.Authenticate { 40 unicodeVersion = ICUBinary.readHeader(byteBuffer, DATA_FORMAT_ID, this); in StringPrepDataReader() 47 return ICUBinary.getChars(byteBuffer, length, 0); in read() 66 return ICUBinary.getVersionByteArrayFromCompactInt(unicodeVersion); in getUnicodeVersion()
|
D | RBBIDataWrapper.java | 18 import com.ibm.icu.impl.ICUBinary.Authenticate; 92 ICUBinary.skipBytes(bytes, lengthOfTable & 1); in get() 94 This.fTable = ICUBinary.getChars(bytes, lengthOfTable / 2, lengthOfTable & 1); in get() 295 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in get() 316 ICUBinary.skipBytes(bytes, 6 * 4); // uint32_t fReserved[6]; in get() 336 ICUBinary.skipBytes(bytes, This.fHeader.fFTable - pos); in get() 347 ICUBinary.skipBytes(bytes, This.fHeader.fRTable - pos); in get() 361 ICUBinary.skipBytes(bytes, This.fHeader.fTrie - pos); // seek buffer from end of in get() 387 ICUBinary.skipBytes(bytes, This.fHeader.fStatusTable - pos); in get() 389 This.fStatusTable = ICUBinary.getInts( in get() [all …]
|
D | UBiDiProps.java | 38 ByteBuffer bytes=ICUBinary.getData(DATA_FILE_NAME); in UBiDiProps() 44 ICUBinary.readHeader(bytes, FMT, new IsAcceptable()); in readData() 67 ICUBinary.skipBytes(bytes, expectedTrieLength-trieLength); in readData() 72 mirrors=ICUBinary.getInts(bytes, count, 0); in readData() 87 private final static class IsAcceptable implements ICUBinary.Authenticate {
|
D | UCharacterProperty.java | 115 private static final class IsAcceptable implements ICUBinary.Authenticate { 156 ByteBuffer bytes = ICUBinary.getRequiredData("ulayout.icu"); in LayoutProps() 158 ICUBinary.readHeaderAndDataVersion(bytes, DATA_FORMAT, IS_ACCEPTABLE); in LayoutProps() 179 ICUBinary.skipBytes(bytes, top - pos); // skip padding after trie bytes in LayoutProps() 188 ICUBinary.skipBytes(bytes, top - pos); // skip padding after trie bytes in LayoutProps() 197 ICUBinary.skipBytes(bytes, top - pos); // skip padding after trie bytes in LayoutProps() 1431 ByteBuffer bytes=ICUBinary.getRequiredData(DATA_FILE_NAME_); in UCharacterProperty() 1432 … m_unicodeVersion_ = ICUBinary.readHeaderAndDataVersion(bytes, DATA_FORMAT, new IsAcceptable()); in UCharacterProperty() 1446 ICUBinary.skipBytes(bytes, (16 - 12) << 2); in UCharacterProperty() 1456 ICUBinary.skipBytes(bytes, expectedTrieLength - trieLength); in UCharacterProperty() [all …]
|
D | UPropertyAliases.java | 70 private static final class IsAcceptable implements ICUBinary.Authenticate { 81 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in load() 96 valueMaps=ICUBinary.getInts(bytes, numInts, 0); in load() 117 ByteBuffer bytes = ICUBinary.getRequiredData("pnames.icu"); in UPropertyAliases()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | UCharacterNameReader.java | 29 final class UCharacterNameReader implements ICUBinary.Authenticate 48 ICUBinary.readHeader(bytes, DATA_FORMAT_ID_, this); in UCharacterNameReader() 71 char token[] = ICUBinary.getChars(m_byteBuffer_, count, 0); in read() 81 char group[] = ICUBinary.getChars(m_byteBuffer_, count, 0); in read() 115 ICUBinary.getVersionByteArrayFromCompactInt(DATA_FORMAT_ID_), in authenticate() 174 char factor[] = ICUBinary.getChars(m_byteBuffer_, variant, 0); in readAlg()
|
D | StringPrepDataReader.java | 29 public final class StringPrepDataReader implements ICUBinary.Authenticate { 42 unicodeVersion = ICUBinary.readHeader(byteBuffer, DATA_FORMAT_ID, this); in StringPrepDataReader() 49 return ICUBinary.getChars(byteBuffer, length, 0); in read() 68 return ICUBinary.getVersionByteArrayFromCompactInt(unicodeVersion); in getUnicodeVersion()
|
D | RBBIDataWrapper.java | 18 import ohos.global.icu.impl.ICUBinary.Authenticate; 74 This.fTable = ICUBinary.getShorts(bytes, lengthOfShorts / 2, lengthOfShorts & 1); in get() 263 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in get() 284 ICUBinary.skipBytes(bytes, 6 * 4); // uint32_t fReserved[6]; in get() 304 ICUBinary.skipBytes(bytes, This.fHeader.fFTable - pos); in get() 315 ICUBinary.skipBytes(bytes, This.fHeader.fRTable - pos); in get() 329 ICUBinary.skipBytes(bytes, This.fHeader.fTrie - pos); // seek buffer from end of in get() 352 ICUBinary.skipBytes(bytes, This.fHeader.fStatusTable - pos); in get() 354 This.fStatusTable = ICUBinary.getInts( in get() 364 ICUBinary.skipBytes(bytes, This.fHeader.fRuleSource - pos); in get() [all …]
|
D | UBiDiProps.java | 42 ByteBuffer bytes=ICUBinary.getData(DATA_FILE_NAME); in UBiDiProps() 48 ICUBinary.readHeader(bytes, FMT, new IsAcceptable()); in readData() 71 ICUBinary.skipBytes(bytes, expectedTrieLength-trieLength); in readData() 76 mirrors=ICUBinary.getInts(bytes, count, 0); in readData() 91 private final static class IsAcceptable implements ICUBinary.Authenticate {
|
D | UCharacterProperty.java | 116 private static final class IsAcceptable implements ICUBinary.Authenticate { 157 ByteBuffer bytes = ICUBinary.getRequiredData("ulayout.icu"); in LayoutProps() 159 ICUBinary.readHeaderAndDataVersion(bytes, DATA_FORMAT, IS_ACCEPTABLE); in LayoutProps() 180 ICUBinary.skipBytes(bytes, top - pos); // skip padding after trie bytes in LayoutProps() 189 ICUBinary.skipBytes(bytes, top - pos); // skip padding after trie bytes in LayoutProps() 198 ICUBinary.skipBytes(bytes, top - pos); // skip padding after trie bytes in LayoutProps() 1432 ByteBuffer bytes=ICUBinary.getRequiredData(DATA_FILE_NAME_); in UCharacterProperty() 1433 … m_unicodeVersion_ = ICUBinary.readHeaderAndDataVersion(bytes, DATA_FORMAT, new IsAcceptable()); in UCharacterProperty() 1447 ICUBinary.skipBytes(bytes, (16 - 12) << 2); in UCharacterProperty() 1457 ICUBinary.skipBytes(bytes, expectedTrieLength - trieLength); in UCharacterProperty() [all …]
|
D | UPropertyAliases.java | 71 private static final class IsAcceptable implements ICUBinary.Authenticate { 82 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in load() 97 valueMaps=ICUBinary.getInts(bytes, numInts, 0); in load() 118 ByteBuffer bytes = ICUBinary.getRequiredData("pnames.icu"); in UPropertyAliases()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | DictionaryData.java | 17 import ohos.global.icu.impl.ICUBinary; 51 ByteBuffer bytes = ICUBinary.getRequiredData(dictFileName); in loadDictionaryFor() 52 ICUBinary.readHeader(bytes, DATA_FORMAT_ID, null); in loadDictionaryFor() 62 ICUBinary.skipBytes(bytes, diff); in loadDictionaryFor() 74 String data = ICUBinary.getString(bytes, totalSize / 2, totalSize & 1); in loadDictionaryFor()
|
D | SpoofChecker.java | 35 import ohos.global.icu.impl.ICUBinary; 36 import ohos.global.icu.impl.ICUBinary.Authenticate; 1780 INSTANCE = new SpoofData(ICUBinary.getRequiredData("confusables.cfu")); 1807 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in SpoofData() 1862 ICUBinary.skipBytes(bytes, CFUKeysOffset); in readData() 1863 fCFUKeys = ICUBinary.getInts(bytes, CFUKeysSize, 0); in readData() 1866 ICUBinary.skipBytes(bytes, CFUValuesOffset); in readData() 1867 fCFUValues = ICUBinary.getShorts(bytes, CFUValuesSize, 0); in readData() 1870 ICUBinary.skipBytes(bytes, CFUStringTableOffset); in readData() 1871 fCFUStrings = ICUBinary.getString(bytes, CFUStringTableSize, 0); in readData()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DictionaryData.java | 16 import com.ibm.icu.impl.ICUBinary; 50 ByteBuffer bytes = ICUBinary.getRequiredData(dictFileName); in loadDictionaryFor() 51 ICUBinary.readHeader(bytes, DATA_FORMAT_ID, null); in loadDictionaryFor() 61 ICUBinary.skipBytes(bytes, diff); in loadDictionaryFor() 73 String data = ICUBinary.getString(bytes, totalSize / 2, totalSize & 1); in loadDictionaryFor()
|
D | SpoofChecker.java | 34 import com.ibm.icu.impl.ICUBinary; 35 import com.ibm.icu.impl.ICUBinary.Authenticate; 1849 INSTANCE = new SpoofData(ICUBinary.getRequiredData("confusables.cfu")); 1876 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in SpoofData() 1931 ICUBinary.skipBytes(bytes, CFUKeysOffset); in readData() 1932 fCFUKeys = ICUBinary.getInts(bytes, CFUKeysSize, 0); in readData() 1935 ICUBinary.skipBytes(bytes, CFUValuesOffset); in readData() 1936 fCFUValues = ICUBinary.getShorts(bytes, CFUValuesSize, 0); in readData() 1939 ICUBinary.skipBytes(bytes, CFUStringTableOffset); in readData() 1940 fCFUStrings = ICUBinary.getString(bytes, CFUStringTableSize, 0); in readData()
|