Home
last modified time | relevance | path

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

/external/icu/icu4c/source/common/
Dutrie2_builder.cpp118 UNewTrie2 *newTrie; in utrie2_open() local
127 newTrie=(UNewTrie2 *)uprv_malloc(sizeof(UNewTrie2)); in utrie2_open()
129 if(trie==NULL || newTrie==NULL || data==NULL) { in utrie2_open()
131 uprv_free(newTrie); in utrie2_open()
141 trie->newTrie=newTrie; in utrie2_open()
146 newTrie->data=data; in utrie2_open()
148 newTrie->t3=umutablecptrie_open(initialValue, errorValue, pErrorCode); in utrie2_open()
150 newTrie->dataCapacity=UNEWTRIE2_INITIAL_DATA_LENGTH; in utrie2_open()
151 newTrie->initialValue=initialValue; in utrie2_open()
152 newTrie->errorValue=errorValue; in utrie2_open()
[all …]
Dutrie2.cpp69 return get32(trie->newTrie, c, TRUE); in utrie2_get32()
83 return get32(trie->newTrie, c, FALSE); in utrie2_get32FromLeadSurrogateCodeUnit()
379 if(trie->newTrie!=NULL) { in utrie2_close()
380 uprv_free(trie->newTrie->data); in utrie2_close()
382 umutablecptrie_close(trie->newTrie->t3); in utrie2_close()
384 uprv_free(trie->newTrie); in utrie2_close()
392 return (UBool)(trie->newTrie==NULL); in utrie2_isFrozen()
404 if( trie==NULL || trie->memory==NULL || trie->newTrie!=NULL || in utrie2_serialize()
460 if(trie->newTrie==NULL) { in enumEitherTrie()
471 data32=trie->newTrie->data; in enumEitherTrie()
[all …]
Ducharstriebuilder.cpp148 UCharsTrie *newTrie=NULL; in build() local
150 newTrie=new UCharsTrie(uchars, uchars+(ucharsCapacity-ucharsLength)); in build()
151 if(newTrie==NULL) { in build()
158 return newTrie; in build()
Dbytestriebuilder.cpp195 BytesTrie *newTrie=NULL; in build() local
197 newTrie=new BytesTrie(bytes, bytes+(bytesCapacity-bytesLength)); in build()
198 if(newTrie==NULL) { in build()
205 return newTrie; in build()
Dutrie2.h676 UNewTrie2 *newTrie; /* builder object; NULL when frozen */ member
/external/icu/icu4c/source/test/cintltst/
Dtrietest.c262 UNewTrie *newTrie; in testTrieRangesWithMalloc() local
274 newTrie=utrie_open(NULL, NULL, 2000, in testTrieRangesWithMalloc()
286 ok&=utrie_set32(newTrie, start, value); in testTrieRangesWithMalloc()
288 ok&=utrie_setRange32(newTrie, start, limit, value, overwrite); in testTrieRangesWithMalloc()
303 if(value!=utrie_get32(newTrie, start, NULL)) { in testTrieRangesWithMalloc()
305 testName, start, utrie_get32(newTrie, start, NULL), value); in testTrieRangesWithMalloc()
318 length=utrie_serialize(newTrie, storage, DEFAULT_STORAGE_SIZE, in testTrieRangesWithMalloc()
324 utrie_close(newTrie); in testTrieRangesWithMalloc()
333 data=utrie_getData(newTrie, &dataLength); in testTrieRangesWithMalloc()
349 utrie_close(newTrie); in testTrieRangesWithMalloc()
[all …]
Dtrie2test.c1294 UNewTrie *newTrie; in makeNewTrie1WithRanges() local
1305 newTrie=utrie_open(NULL, NULL, 2000, in makeNewTrie1WithRanges()
1321 ok&=utrie_set32(newTrie, start, value); in makeNewTrie1WithRanges()
1323 ok&=utrie_setRange32(newTrie, start, limit, value, overwrite); in makeNewTrie1WithRanges()
1327 return newTrie; in makeNewTrie1WithRanges()
1330 utrie_close(newTrie); in makeNewTrie1WithRanges()
/external/icu/icu4c/source/test/perf/unisetperf/draft/
Dtrieset.cpp47 UNewTrie *newTrie=utrie_open(NULL, NULL, 0x11000, 0, 0, TRUE); in TrieSet() local
61 if(!utrie_setRange32(newTrie, start, end+1, TRUE, TRUE)) { in TrieSet()
68 int32_t length=utrie_serialize(newTrie, NULL, 0, NULL, 8, &errorCode); in TrieSet()
80 utrie_serialize(newTrie, trieData, length, NULL, 8, &errorCode); in TrieSet()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTrieTest.java203 IntTrieBuilder newTrie = new IntTrieBuilder(null, 2000, in _testTrieRanges() local
216 ok &= newTrie.setValue(start, value); in _testTrieRanges()
219 ok &= newTrie.setRange(start, limit, value, overwrite); in _testTrieRanges()
234 if (value != newTrie.getValue(start)) { in _testTrieRanges()
237 + Integer.toHexString(newTrie.getValue(start)) in _testTrieRanges()
244 IntTrie trie = newTrie.serialize(new _testFoldedValue(newTrie), in _testTrieRanges()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTrieTest.java200 IntTrieBuilder newTrie = new IntTrieBuilder(null, 2000, in _testTrieRanges() local
213 ok &= newTrie.setValue(start, value); in _testTrieRanges()
216 ok &= newTrie.setRange(start, limit, value, overwrite); in _testTrieRanges()
231 if (value != newTrie.getValue(start)) { in _testTrieRanges()
234 + Integer.toHexString(newTrie.getValue(start)) in _testTrieRanges()
241 IntTrie trie = newTrie.serialize(new _testFoldedValue(newTrie), in _testTrieRanges()