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.c109 testTrieGetRanges(const char *testName, const UCPTrie *trie, const UMutableCPTrie *mutableTrie, in testTrieGetRanges() argument
141 umutablecptrie_getRange(mutableTrie, start, option, surrValue, NULL, NULL, &value); in testTrieGetRanges()
158 umutablecptrie_getRange(mutableTrie, start, option, surrValue ^ 0x5555, in testTrieGetRanges()
174 umutablecptrie_getRange(mutableTrie, start, option, surrValue, NULL, NULL, NULL); in testTrieGetRanges()
342 testBuilderGetters(const char *testName, const UMutableCPTrie *mutableTrie, in testBuilderGetters() argument
360 value2=umutablecptrie_get(mutableTrie, start); in testBuilderGetters()
374 value=umutablecptrie_get(mutableTrie, -1); in testBuilderGetters()
375 value2=umutablecptrie_get(mutableTrie, 0x110000); in testBuilderGetters()
701 testBuilder(const char *testName, const UMutableCPTrie *mutableTrie, in testBuilder() argument
703 testBuilderGetters(testName, mutableTrie, checkRanges, countCheckRanges); in testBuilder()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/lang/
DCharacterProperties.java63 MutableCodePointTrie mutableTrie = new MutableCodePointTrie(nullValue, nullValue); in makeMap() local
76 mutableTrie.setRange(start, c - 1, value); in makeMap()
84 mutableTrie.setRange(start, 0x10FFFF, value); in makeMap()
103 return mutableTrie.buildImmutable(type, valueWidth); in makeMap()
/external/icu/icu4j/main/classes/core/src/com/ibm/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/icu4c/source/common/
Dcharacterproperties.cpp301 icu::LocalUMutableCPTriePointer mutableTrie( in makeMap() local
317 … umutablecptrie_setRange(mutableTrie.getAlias(), start, c - 1, value, &errorCode); in makeMap()
325 umutablecptrie_setRange(mutableTrie.getAlias(), start, 0x10FFFF, value, &errorCode); in makeMap()
345 umutablecptrie_buildImmutable(mutableTrie.getAlias(), type, valueWidth, &errorCode)); in makeMap()
Dnormalizer2impl.cpp421 UMutableCPTrie *mutableTrie; member
2338 mutableTrie(umutablecptrie_open(0, 0, &errorCode)), trie(nullptr), in CanonIterData()
2342 umutablecptrie_close(mutableTrie); in ~CanonIterData()
2347 uint32_t canonValue = umutablecptrie_get(mutableTrie, decompLead); in addToStartSet()
2351 umutablecptrie_set(mutableTrie, decompLead, canonValue|origin, &errorCode); in addToStartSet()
2363 umutablecptrie_set(mutableTrie, decompLead, canonValue, &errorCode); in addToStartSet()
2410 umutablecptrie_setName(impl->fCanonIterData->mutableTrie, "CanonIterData"); in doInit()
2413 … impl->fCanonIterData->mutableTrie, UCPTRIE_TYPE_SMALL, UCPTRIE_VALUE_BITS_32, &errorCode); in doInit()
2414 umutablecptrie_close(impl->fCanonIterData->mutableTrie); in doInit()
2415 impl->fCanonIterData->mutableTrie = nullptr; in doInit()
[all …]
Dumutablecptrie.cpp182 LocalPointer<MutableCodePointTrie> mutableTrie( in fromUCPMap() local
194 mutableTrie->set(start, value, errorCode); in fromUCPMap()
196 mutableTrie->setRange(start, end, value, errorCode); in fromUCPMap()
202 return mutableTrie.orphan(); in fromUCPMap()
230 LocalPointer<MutableCodePointTrie> mutableTrie( in fromUCPTrie() local
242 mutableTrie->set(start, value, errorCode); in fromUCPTrie()
244 mutableTrie->setRange(start, end, value, errorCode); in fromUCPTrie()
250 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/icu4j/main/classes/core/src/com/ibm/icu/util/
DMutableCodePointTrie.java101 MutableCodePointTrie mutableTrie = new MutableCodePointTrie(initialValue, errorValue); in fromCodePointMap() local
109 mutableTrie.set(start, value); in fromCodePointMap()
111 mutableTrie.setRange(start, end, value); in fromCodePointMap()
116 return mutableTrie; in fromCodePointMap()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DMutableCodePointTrie.java99 MutableCodePointTrie mutableTrie = new MutableCodePointTrie(initialValue, errorValue); in fromCodePointMap() local
107 mutableTrie.set(start, value); in fromCodePointMap()
109 mutableTrie.setRange(start, end, value); in fromCodePointMap()
114 return mutableTrie; in fromCodePointMap()