Home | History | Annotate | Download | only in i18n

Lines Matching full:sizeof

31         uint32_t *newData = (uint32_t *)uprv_realloc(tbl->CEs, 2*tbl->size*sizeof(uint32_t));
36 UChar *newCPs = (UChar *)uprv_realloc(tbl->codePoints, 2*tbl->size*sizeof(UChar));
54 CntTable *tbl = (CntTable *)uprv_malloc(sizeof(CntTable));
60 tbl->elements = (ContractionTable **)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
67 uprv_memset(tbl->elements, 0, INIT_EXP_TABLE_SIZE*sizeof(ContractionTable *));
78 ContractionTable *el = (ContractionTable *)uprv_malloc(sizeof(ContractionTable));
82 el->CEs = (uint32_t *)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(uint32_t));
87 el->codePoints = (UChar *)uprv_malloc(INIT_EXP_TABLE_SIZE*sizeof(UChar));
95 uprv_memset(el->CEs, 0, INIT_EXP_TABLE_SIZE*sizeof(uint32_t));
96 uprv_memset(el->codePoints, 0, INIT_EXP_TABLE_SIZE*sizeof(UChar));
105 ContractionTable **newElements = (ContractionTable **)uprv_malloc(table->capacity*2*sizeof(ContractionTable *));
107 /* table->elements = (ContractionTable **)realloc(table->elements, table->capacity*2*sizeof(ContractionTable *));*/
114 uprv_memcpy(newElements, oldElements, table->capacity*sizeof(ContractionTable *));
115 uprv_memset(newElements+table->capacity, 0, table->capacity*sizeof(ContractionTable *));
141 table->offsets = (int32_t *)uprv_malloc(table->size*sizeof(int32_t));
158 table->CEs = (uint32_t *)uprv_malloc(table->position*sizeof(uint32_t));
165 uprv_memset(table->CEs, '?', table->position*sizeof(uint32_t));
170 table->codePoints = (UChar *)uprv_malloc(table->position*sizeof(UChar));
179 uprv_memset(table->codePoints, '?', table->position*sizeof(UChar));
200 uprv_memcpy(CEPointer, table->elements[i]->CEs, size*sizeof(uint32_t));
231 ContractionTable *r = (ContractionTable *)uprv_malloc(sizeof(ContractionTable));
239 r->codePoints = (UChar *)uprv_malloc(sizeof(UChar)*t->size);
243 r->CEs = (uint32_t *)uprv_malloc(sizeof(uint32_t)*t->size);
248 uprv_memcpy(r->codePoints, t->codePoints, sizeof(UChar)*t->size);
249 uprv_memcpy(r->CEs, t->CEs, sizeof(uint32_t)*t->size);
265 CntTable *r = (CntTable *)uprv_malloc(sizeof(CntTable));
276 r->elements = (ContractionTable **)uprv_malloc(t->capacity*sizeof(ContractionTable *));
281 //uprv_memcpy(r->elements, t->elements, t->capacity*sizeof(ContractionTable *));
288 r->CEs = (uint32_t *)uprv_malloc(t->position*sizeof(uint32_t));
294 uprv_memcpy(r->CEs, t->CEs, t->position*sizeof(uint32_t));
300 r->codePoints = (UChar *)uprv_malloc(t->position*sizeof(UChar));
307 uprv_memcpy(r->codePoints, t->codePoints, t->position*sizeof(UChar));
313 r->offsets = (int32_t *)uprv_malloc(t->size*sizeof(int32_t));
321 uprv_memcpy(r->offsets, t->offsets, t->size*sizeof(int32_t));