Home
last modified time | relevance | path

Searched refs:mutableTrie (Results 1 – 12 of 12) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DCodePointTrieTest.java294 … testBuilderGetters(String testName, MutableCodePointTrie mutableTrie, CheckRange checkRanges[]) { in testBuilderGetters() argument
310 value2=mutableTrie.get(start); in testBuilderGetters()
325 value=mutableTrie.get(-1); in testBuilderGetters()
326 value2=mutableTrie.get(0x110000); in testBuilderGetters()
440 testBuilder(String testName, MutableCodePointTrie mutableTrie, CheckRange checkRanges[]) { in testBuilder() argument
441 testBuilderGetters(testName, mutableTrie, checkRanges); in testBuilder()
442 testTrieGetRanges(testName, mutableTrie, CodePointMap.RangeOption.NORMAL, 0, checkRanges); in testBuilder()
446 testTrieSerialize(String testName, MutableCodePointTrie mutableTrie, in testTrieSerialize() argument
453 mutableTrie = mutableTrie.clone(); in testTrieSerialize()
460 trie = mutableTrie.buildImmutable(type, valueWidth); in testTrieSerialize()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DCodePointTrieTest.java291 … testBuilderGetters(String testName, MutableCodePointTrie mutableTrie, CheckRange checkRanges[]) { in testBuilderGetters() argument
307 value2=mutableTrie.get(start); in testBuilderGetters()
322 value=mutableTrie.get(-1); in testBuilderGetters()
323 value2=mutableTrie.get(0x110000); in testBuilderGetters()
437 testBuilder(String testName, MutableCodePointTrie mutableTrie, CheckRange checkRanges[]) { in testBuilder() argument
438 testBuilderGetters(testName, mutableTrie, checkRanges); in testBuilder()
439 testTrieGetRanges(testName, mutableTrie, CodePointMap.RangeOption.NORMAL, 0, checkRanges); in testBuilder()
443 testTrieSerialize(String testName, MutableCodePointTrie mutableTrie, in testTrieSerialize() argument
450 mutableTrie = mutableTrie.clone(); in testTrieSerialize()
457 trie = mutableTrie.buildImmutable(type, valueWidth); in testTrieSerialize()
[all …]
/external/icu/icu4c/source/test/cintltst/
Ducptrietest.c110 testTrieGetRanges(const char *testName, const UCPTrie *trie, const UMutableCPTrie *mutableTrie, in testTrieGetRanges() argument
142 umutablecptrie_getRange(mutableTrie, start, option, surrValue, NULL, NULL, &value); in testTrieGetRanges()
159 umutablecptrie_getRange(mutableTrie, start, option, surrValue ^ 0x5555, in testTrieGetRanges()
175 umutablecptrie_getRange(mutableTrie, start, option, surrValue, NULL, NULL, NULL); in testTrieGetRanges()
343 testBuilderGetters(const char *testName, const UMutableCPTrie *mutableTrie, in testBuilderGetters() argument
361 value2=umutablecptrie_get(mutableTrie, start); in testBuilderGetters()
375 value=umutablecptrie_get(mutableTrie, -1); in testBuilderGetters()
376 value2=umutablecptrie_get(mutableTrie, 0x110000); in testBuilderGetters()
702 testBuilder(const char *testName, const UMutableCPTrie *mutableTrie, in testBuilder() argument
704 testBuilderGetters(testName, mutableTrie, checkRanges, countCheckRanges); in testBuilder()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/lang/
DCharacterProperties.java62 MutableCodePointTrie mutableTrie = new MutableCodePointTrie(nullValue, nullValue); in makeMap() local
75 mutableTrie.setRange(start, c - 1, value); in makeMap()
83 mutableTrie.setRange(start, 0x10FFFF, value); in makeMap()
102 return mutableTrie.buildImmutable(type, valueWidth); in makeMap()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/
DCharacterProperties.java61 MutableCodePointTrie mutableTrie = new MutableCodePointTrie(nullValue, nullValue); in makeMap() local
74 mutableTrie.setRange(start, c - 1, value); in makeMap()
82 mutableTrie.setRange(start, 0x10FFFF, value); in makeMap()
101 return mutableTrie.buildImmutable(type, valueWidth); in makeMap()
/external/icu/icu4c/source/common/
Dcharacterproperties.cpp303 icu::LocalUMutableCPTriePointer mutableTrie( in makeMap() local
319 … umutablecptrie_setRange(mutableTrie.getAlias(), start, c - 1, value, &errorCode); in makeMap()
327 umutablecptrie_setRange(mutableTrie.getAlias(), start, 0x10FFFF, value, &errorCode); in makeMap()
347 umutablecptrie_buildImmutable(mutableTrie.getAlias(), type, valueWidth, &errorCode)); in makeMap()
Dnormalizer2impl.cpp420 UMutableCPTrie *mutableTrie; member
2347 mutableTrie(umutablecptrie_open(0, 0, &errorCode)), trie(nullptr), in CanonIterData()
2351 umutablecptrie_close(mutableTrie); in ~CanonIterData()
2356 uint32_t canonValue = umutablecptrie_get(mutableTrie, decompLead); in addToStartSet()
2360 umutablecptrie_set(mutableTrie, decompLead, canonValue|origin, &errorCode); in addToStartSet()
2372 umutablecptrie_set(mutableTrie, decompLead, canonValue, &errorCode); in addToStartSet()
2419 umutablecptrie_setName(impl->fCanonIterData->mutableTrie, "CanonIterData"); in doInit()
2422 … impl->fCanonIterData->mutableTrie, UCPTRIE_TYPE_SMALL, UCPTRIE_VALUE_BITS_32, &errorCode); in doInit()
2423 umutablecptrie_close(impl->fCanonIterData->mutableTrie); in doInit()
2424 impl->fCanonIterData->mutableTrie = nullptr; in doInit()
[all …]
Dumutablecptrie.cpp187 LocalPointer<MutableCodePointTrie> mutableTrie( in fromUCPMap() local
199 mutableTrie->set(start, value, errorCode); in fromUCPMap()
201 mutableTrie->setRange(start, end, value, errorCode); in fromUCPMap()
207 return mutableTrie.orphan(); in fromUCPMap()
235 LocalPointer<MutableCodePointTrie> mutableTrie( in fromUCPTrie() local
247 mutableTrie->set(start, value, errorCode); in fromUCPTrie()
249 mutableTrie->setRange(start, end, value, errorCode); in fromUCPTrie()
255 return mutableTrie.orphan(); in fromUCPTrie()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DNormalizer2Impl.java610 MutableCodePointTrie mutableTrie = new MutableCodePointTrie(0, 0); in ensureCanonIterData() local
629 final int oldValue = mutableTrie.get(c); in ensureCanonIterData()
667 addToStartSet(mutableTrie, c, c2); in ensureCanonIterData()
674 int c2Value = mutableTrie.get(c2); in ensureCanonIterData()
676 mutableTrie.set(c2, c2Value|CANON_NOT_SEGMENT_STARTER); in ensureCanonIterData()
683 addToStartSet(mutableTrie, c, c2); in ensureCanonIterData()
687 mutableTrie.set(c, newValue); in ensureCanonIterData()
692 canonIterData = mutableTrie.buildImmutable( in ensureCanonIterData()
2243 private void addToStartSet(MutableCodePointTrie mutableTrie, int origin, int decompLead) { in addToStartSet() argument
2244 int canonValue = mutableTrie.get(decompLead); in addToStartSet()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DNormalizer2Impl.java601 MutableCodePointTrie mutableTrie = new MutableCodePointTrie(0, 0); in ensureCanonIterData() local
620 final int oldValue = mutableTrie.get(c); in ensureCanonIterData()
658 addToStartSet(mutableTrie, c, c2); in ensureCanonIterData()
665 int c2Value = mutableTrie.get(c2); in ensureCanonIterData()
667 mutableTrie.set(c2, c2Value|CANON_NOT_SEGMENT_STARTER); in ensureCanonIterData()
674 addToStartSet(mutableTrie, c, c2); in ensureCanonIterData()
678 mutableTrie.set(c, newValue); in ensureCanonIterData()
683 canonIterData = mutableTrie.buildImmutable( in ensureCanonIterData()
2234 private void addToStartSet(MutableCodePointTrie mutableTrie, int origin, int decompLead) { in addToStartSet() argument
2235 int canonValue = mutableTrie.get(decompLead); in addToStartSet()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DMutableCodePointTrie.java95 MutableCodePointTrie mutableTrie = new MutableCodePointTrie(initialValue, errorValue); in fromCodePointMap() local
103 mutableTrie.set(start, value); in fromCodePointMap()
105 mutableTrie.setRange(start, end, value); in fromCodePointMap()
110 return mutableTrie; in fromCodePointMap()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMutableCodePointTrie.java97 MutableCodePointTrie mutableTrie = new MutableCodePointTrie(initialValue, errorValue); in fromCodePointMap() local
105 mutableTrie.set(start, value); in fromCodePointMap()
107 mutableTrie.setRange(start, end, value); in fromCodePointMap()
112 return mutableTrie; in fromCodePointMap()