Home
last modified time | relevance | path

Searched refs:mappingDataCapacity (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/third_party/icu/source/tools/gensprep/
Dstore.c153 static int32_t mappingDataCapacity = 0; /* we skip the first index in mapping data */ variable
256 mappingData = (uint16_t*) uprv_malloc(U_SIZEOF_UCHAR * (mappingDataCapacity)); in storeMappingData()
258 uprv_memset(mappingData,0,U_SIZEOF_UCHAR * mappingDataCapacity); in storeMappingData()
324 if(currentIndex+value->length+1 <= mappingDataCapacity){ in storeMappingData()
336 … UChar* newMappingData = (uint16_t*) uprv_malloc(U_SIZEOF_UCHAR * mappingDataCapacity*2); in storeMappingData()
341 uprv_memmove(newMappingData, mappingData, U_SIZEOF_UCHAR * mappingDataCapacity); in storeMappingData()
342 mappingDataCapacity *= 2; in storeMappingData()
481 mappingDataCapacity++; in storeMapping()
487 mappingDataCapacity += adjustedLen; in storeMapping()
607 size = sprepTrieSize + mappingDataCapacity*U_SIZEOF_UCHAR + sizeof(indexes); in generateData()
[all …]
/external/icu4c/tools/gensprep/
Dstore.c154 static int32_t mappingDataCapacity = 0; /* we skip the first index in mapping data */ variable
256 mappingData = (uint16_t*) uprv_calloc(mappingDataCapacity, U_SIZEOF_UCHAR); in storeMappingData()
331 if (currentIndex > mappingDataCapacity) { in storeMappingData()
449 mappingDataCapacity++; in storeMapping()
455 mappingDataCapacity += adjustedLen; in storeMapping()
573 size = sprepTrieSize + mappingDataCapacity*U_SIZEOF_UCHAR + sizeof(indexes); in generateData()
577 printf("size of mapping data array %5u bytes\n",(int)mappingDataCapacity * U_SIZEOF_UCHAR); in generateData()
597 indexes[_SPREP_INDEX_MAPPING_DATA_SIZE]=mappingDataCapacity*U_SIZEOF_UCHAR; in generateData()