Home
last modified time | relevance | path

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

/external/icu4c/common/
Dutrie2_builder.c111 UNewTrie2 *newTrie; in utrie2_open() local
120 newTrie=(UNewTrie2 *)uprv_malloc(sizeof(UNewTrie2)); in utrie2_open()
122 if(trie==NULL || newTrie==NULL || data==NULL) { in utrie2_open()
124 uprv_free(newTrie); in utrie2_open()
134 trie->newTrie=newTrie; in utrie2_open()
136 newTrie->data=data; in utrie2_open()
137 newTrie->dataCapacity=UNEWTRIE2_INITIAL_DATA_LENGTH; in utrie2_open()
138 newTrie->initialValue=initialValue; in utrie2_open()
139 newTrie->errorValue=errorValue; in utrie2_open()
140 newTrie->highStart=0x110000; in utrie2_open()
[all …]
Dutrie2.cpp64 return get32(trie->newTrie, c, TRUE); in utrie2_get32()
78 return get32(trie->newTrie, c, FALSE); in utrie2_get32FromLeadSurrogateCodeUnit()
368 if(trie->newTrie!=NULL) { in utrie2_close()
369 uprv_free(trie->newTrie->data); in utrie2_close()
370 uprv_free(trie->newTrie); in utrie2_close()
529 if(trie->newTrie==NULL) { in enumEitherTrie()
539 data32=trie->newTrie->data; in enumEitherTrie()
541 index2NullOffset=trie->newTrie->index2NullOffset; in enumEitherTrie()
542 nullBlock=trie->newTrie->dataNullOffset; in enumEitherTrie()
587 i2Block=trie->newTrie->index1[c>>UTRIE2_SHIFT_1]; in enumEitherTrie()
[all …]
Ducharstriebuilder.cpp144 UCharsTrie *newTrie=NULL; in build() local
146 newTrie=new UCharsTrie(uchars, uchars+(ucharsCapacity-ucharsLength)); in build()
147 if(newTrie==NULL) { in build()
154 return newTrie; in build()
Dbytestriebuilder.cpp191 BytesTrie *newTrie=NULL; in build() local
193 newTrie=new BytesTrie(bytes, bytes+(bytesCapacity-bytesLength)); in build()
194 if(newTrie==NULL) { in build()
201 return newTrie; in build()
Dutrie2.h717 UNewTrie2 *newTrie; /* builder object; NULL when frozen */ member
/external/icu4c/test/cintltst/
Dtrietest.c261 UNewTrie *newTrie; in testTrieRangesWithMalloc() local
273 newTrie=utrie_open(NULL, NULL, 2000, in testTrieRangesWithMalloc()
285 ok&=utrie_set32(newTrie, start, value); in testTrieRangesWithMalloc()
287 ok&=utrie_setRange32(newTrie, start, limit, value, overwrite); in testTrieRangesWithMalloc()
302 if(value!=utrie_get32(newTrie, start, NULL)) { in testTrieRangesWithMalloc()
304 testName, start, utrie_get32(newTrie, start, NULL), value); in testTrieRangesWithMalloc()
317 length=utrie_serialize(newTrie, storage, DEFAULT_STORAGE_SIZE, in testTrieRangesWithMalloc()
323 utrie_close(newTrie); in testTrieRangesWithMalloc()
332 data=utrie_getData(newTrie, &dataLength); in testTrieRangesWithMalloc()
348 utrie_close(newTrie); in testTrieRangesWithMalloc()
[all …]
Dtrie2test.c1287 UNewTrie *newTrie; in makeNewTrie1WithRanges() local
1298 newTrie=utrie_open(NULL, NULL, 2000, in makeNewTrie1WithRanges()
1314 ok&=utrie_set32(newTrie, start, value); in makeNewTrie1WithRanges()
1316 ok&=utrie_setRange32(newTrie, start, limit, value, overwrite); in makeNewTrie1WithRanges()
1320 return newTrie; in makeNewTrie1WithRanges()
1323 utrie_close(newTrie); in makeNewTrie1WithRanges()
/external/icu4c/test/perf/unisetperf/draft/
Dtrieset.cpp43 UNewTrie *newTrie=utrie_open(NULL, NULL, 0x11000, 0, 0, TRUE); in TrieSet() local
57 if(!utrie_setRange32(newTrie, start, end+1, TRUE, TRUE)) { in TrieSet()
64 int32_t length=utrie_serialize(newTrie, NULL, 0, NULL, 8, &errorCode); in TrieSet()
76 utrie_serialize(newTrie, trieData, length, NULL, 8, &errorCode); in TrieSet()