/external/icu/icu4c/source/tools/genrb/ |
D | wrtxml.cpp | 81 char* dest = (char*)uprv_malloc(len); in write_utf8_file() 109 result = (char *)uprv_malloc(sizeof(char)*uprv_strlen(id) + 1); in getID() 113 result = (char *)uprv_malloc(sizeof(char)*(uprv_strlen(id) + 1 + uprv_strlen(curKey)) + 1); in getID() 190 char* localeID = (char*) uprv_malloc(idLen); in parseFilename() 208 canon = (char*) uprv_malloc(canonCapacity); in parseFilename() 249 dest = (char*) uprv_malloc(sizeof(char) * destCap); in convertAndEscape() 347 temp = (char*) uprv_malloc(sizeof(char)*destCap); in convertAndEscape() 409 buf = (char*) (uprv_malloc(bufCapacity)); in print() 441 note = (UChar*) uprv_malloc(U_SIZEOF_UCHAR * capacity); in printNoteElements() 500 UChar* desc = (UChar*) uprv_malloc(U_SIZEOF_UCHAR * capacity); in printComments() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | idnaref.cpp | 147 b1 = (uint32_t*) uprv_malloc(b1Len * sizeof(uint32_t)); in convertToPuny() 168 b2 = (char*) uprv_malloc( b2Len * sizeof(char)); in convertToPuny() 228 b2 = (uint32_t*) uprv_malloc(b2Len * sizeof(uint32_t)); in convertFromPuny() 314 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII() 373 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toASCII() 503 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toUnicode() 524 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode() 547 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toUnicode() 566 b3 = (UChar*) uprv_malloc(b3Len * U_SIZEOF_UCHAR); in idnaref_toUnicode() 746 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII() [all …]
|
D | textfile.cpp | 38 name = uprv_malloc(uprv_strlen(_name) + 1); in TextFile() 39 encoding = uprv_malloc(uprv_strlen(_encoding) + 1); in TextFile() 170 char* newbuffer = (char*) uprv_malloc(mincapacity); in ensureCapacity()
|
/external/icu/icu4c/source/common/ |
D | cmemory.cpp | 45 uprv_malloc(size_t s) { in uprv_malloc() function 72 return uprv_malloc(size); in uprv_realloc() 108 mem = uprv_malloc(size); in uprv_calloc()
|
D | ucnvsel.cpp | 166 (UConverterSelector*)uprv_malloc(sizeof(UConverterSelector))); in ucnvsel_open() 178 (char**)uprv_malloc(converterListSize * sizeof(char*)); in ucnvsel_open() 198 char* allStrings = (char*) uprv_malloc(totalSize); in ucnvsel_open() 519 swapped = (uint8_t*)uprv_malloc(totalSize); in ucnvsel_openFromSerialized() 551 UConverterSelector* sel = (UConverterSelector*)uprv_malloc(sizeof(UConverterSelector)); in ucnvsel_openFromSerialized() 553 (char **)uprv_malloc( in ucnvsel_openFromSerialized() 698 LocalMemory<Enumerator> result(static_cast<Enumerator *>(uprv_malloc(sizeof(Enumerator)))); in selectForMask() 707 LocalMemory<UEnumeration> en(static_cast<UEnumeration *>(uprv_malloc(sizeof(UEnumeration)))); in selectForMask() 719 result->index = static_cast<int16_t*>(uprv_malloc(numOnes * sizeof(int16_t))); in selectForMask() 756 uint32_t* mask = (uint32_t*) uprv_malloc(columns * 4); in ucnvsel_selectForString() [all …]
|
D | uobject.cpp | 62 return uprv_malloc(size); in operator new() 72 return uprv_malloc(size); in operator new[]()
|
D | caniter.cpp | 185 pieces = (UnicodeString **)uprv_malloc(sizeof(UnicodeString *)); in setSource() 186 pieces_lengths = (int32_t*)uprv_malloc(1 * sizeof(int32_t)); in setSource() 188 current = (int32_t*)uprv_malloc(1 * sizeof(int32_t)); in setSource() 231 pieces = (UnicodeString **)uprv_malloc(list_length * sizeof(UnicodeString *)); in setSource() 233 pieces_lengths = (int32_t*)uprv_malloc(list_length * sizeof(int32_t)); in setSource() 234 current = (int32_t*)uprv_malloc(list_length * sizeof(int32_t)); in setSource()
|
D | uidna.cpp | 231 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in _internal_toASCII() 259 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toASCII() 341 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in _internal_toASCII() 461 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toUnicode() 501 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in _internal_toUnicode() 519 b3 = (UChar*) uprv_malloc(b3Len * U_SIZEOF_UCHAR); in _internal_toUnicode() 880 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in uidna_compare() 895 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in uidna_compare()
|
D | cmemory.h | 56 uprv_malloc(size_t s) U_MALLOC_ATTR U_ALLOC_SIZE_ATTR(1); 231 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndReset() 247 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndCopy() 461 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in resize() 494 p=(T *)uprv_malloc(length*sizeof(T)); in orphanOrClone() 633 H *p=(H *)uprv_malloc(sizeof(H)+newCapacity*sizeof(T)); in resize() 672 p=(H *)uprv_malloc(sizeof(H)+length*sizeof(T)); in orphanOrClone()
|
D | ustrenum.cpp | 92 chars=(char *)uprv_malloc(capacity); in ensureCharsCapacity() 266 result = (UEnumeration*) uprv_malloc(sizeof(UEnumeration)); in uenum_openFromStringEnumeration() 364 result = (UCharStringEnumeration*) uprv_malloc(sizeof(UCharStringEnumeration)); in uenum_openCharStringsEnumeration() 383 result = (UCharStringEnumeration*) uprv_malloc(sizeof(UCharStringEnumeration)); in uenum_openUCharStringsEnumeration()
|
D | ulist.cpp | 43 newList = (UList *)uprv_malloc(sizeof(UList)); in ulist_createEmptyList() 101 newItem = (UListNode *)uprv_malloc(sizeof(UListNode)); in ulist_addItemEndList() 134 newItem = (UListNode *)uprv_malloc(sizeof(UListNode)); in ulist_addItemBeginList()
|
D | utrie2_builder.cpp | 126 trie=(UTrie2 *)uprv_malloc(sizeof(UTrie2)); in utrie2_open() 127 newTrie=(UNewTrie2 *)uprv_malloc(sizeof(UNewTrie2)); in utrie2_open() 128 data=(uint32_t *)uprv_malloc(UNEWTRIE2_INITIAL_DATA_LENGTH*4); in utrie2_open() 252 trie=(UNewTrie2 *)uprv_malloc(sizeof(UNewTrie2)); in cloneBuilder() 257 trie->data=(uint32_t *)uprv_malloc(other->dataCapacity*4); in cloneBuilder() 310 trie=(UTrie2 *)uprv_malloc(sizeof(UTrie2)); in utrie2_clone() 318 trie->memory=uprv_malloc(other->length); in utrie2_clone() 580 data=(uint32_t *)uprv_malloc(capacity*4); in allocDataBlock() 1379 trie->memory=uprv_malloc(length); in utrie2_freeze()
|
D | cstring.cpp | 317 char *dup = (char *) uprv_malloc(len); in uprv_strdup() 333 dup = (char*)uprv_malloc(n+1); in uprv_strndup()
|
D | propsvec.cpp | 58 pv=(UPropsVectors *)uprv_malloc(sizeof(UPropsVectors)); in upvec_open() 59 v=(uint32_t *)uprv_malloc(UPVEC_INITIAL_ROWS*columns*4); in upvec_open() 218 newVectors=(uint32_t *)uprv_malloc(newMaxRows*columns*4); in upvec_setValue() 465 clonedArray=(uint32_t *)uprv_malloc(byteLength); in upvec_cloneArray()
|
D | ustr_wcs.cpp | 44 char *newBuffer=(char *)uprv_malloc(reqCapacity*size); in u_growAnyBufferFromStatic() 151 intTarget = (wchar_t*)uprv_malloc( intTargetCapacity * sizeof(wchar_t) ); in _strToWCS() 392 pWStack =(wchar_t*) uprv_malloc(sizeof(wchar_t) * (nulLen + 1)); in _strFromWCS()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | flagparser.cpp | 38 buffer = (char *)uprv_malloc(sizeof(char) * currentBufferSize); in parseFlagsFile() 39 tmpFlagBuffer = (char *)uprv_malloc(sizeof(char) * flagBufferSize); in parseFlagsFile() 51 buffer = (char *)uprv_malloc(sizeof(char) * currentBufferSize); in parseFlagsFile()
|
/external/icu/icu4c/source/test/perf/usetperf/ |
D | bitset.cpp | 26 data = (int32_t*) uprv_malloc(len * BYTES_PER_WORD); in BitSet() 57 int32_t* newData = (int32_t*) uprv_malloc(newLen * BYTES_PER_WORD); in ensureCapacity()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ucnvseltst.c | 58 gAvailableNames = (const char **)uprv_malloc(gCountAvailable * sizeof(const char *)); in getAvailableNames() 86 names = (const char **)uprv_malloc(count * sizeof(char *)); in getEncodings() 238 tt->text = (char *)uprv_malloc(length + 1); in text_open() 279 resultsManually = (UBool*) uprv_malloc(gCountAvailable); in getResultsManually() 329 UBool* resultsFromSystem = (UBool*) uprv_malloc(gCountAvailable * sizeof(UBool)); in verifyResult() 360 new_buffer = (char *)uprv_malloc(ser_len); in serializeAndUnserialize()
|
/external/icu/libicu/cts_headers/ |
D | cmemory.h | 56 uprv_malloc(size_t s) U_MALLOC_ATTR U_ALLOC_SIZE_ATTR(1); 231 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndReset() 247 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndCopy() 461 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in resize() 494 p=(T *)uprv_malloc(length*sizeof(T)); in orphanOrClone() 633 H *p=(H *)uprv_malloc(sizeof(H)+newCapacity*sizeof(T)); in resize() 672 p=(H *)uprv_malloc(sizeof(H)+length*sizeof(T)); in orphanOrClone()
|
/external/icu/icu4c/source/i18n/ |
D | vzone.cpp | 88 result = (UChar*)uprv_malloc(resultLength); in vzone_write() 100 result = (UChar*)uprv_malloc(resultLength); in vzone_writeFromStart() 112 result = (UChar*)uprv_malloc(resultLength); in vzone_writeSimple()
|
D | search.cpp | 30 m_search_ = (USearch *)uprv_malloc(sizeof(USearch)); in SearchIterator() 347 m_search_ = (USearch *)uprv_malloc(sizeof(USearch)); in SearchIterator() 366 m_search_ = (USearch *)uprv_malloc(sizeof(USearch)); in SearchIterator() 383 m_search_ = (USearch *)uprv_malloc(sizeof(USearch)); in SearchIterator()
|
D | formatted_string_builder.cpp | 74 auto newChars = static_cast<char16_t *> (uprv_malloc(sizeof(char16_t) * capacity)); in operator =() 75 auto newFields = static_cast<Field *>(uprv_malloc(sizeof(Field) * capacity)); in operator =() 288 auto newChars = static_cast<char16_t *> (uprv_malloc(sizeof(char16_t) * newCapacity)); in prepareForInsertHelper() 289 auto newFields = static_cast<Field *>(uprv_malloc(sizeof(Field) * newCapacity)); in prepareForInsertHelper()
|
D | sortkey.cpp | 102 uint8_t *newBytes = static_cast<uint8_t *>(uprv_malloc(newCapacity)); in reallocate() 228 uint8_t *result = (uint8_t*) uprv_malloc( sizeof(uint8_t) * fCount ); in toByteArray()
|
D | winnmfmt.cpp | 52 #define NEW_ARRAY(type,count) (type *) uprv_malloc((count) * sizeof(type)) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 236 fFormatInfo = (FormatInfo*)uprv_malloc(sizeof(FormatInfo)); in Win32NumberFormat() 247 : NumberFormat(other), fFormatInfo((FormatInfo*)uprv_malloc(sizeof(FormatInfo))) in Win32NumberFormat()
|
/external/icu/icu4c/source/io/ |
D | ufile.cpp | 64 result = (UFILE*) uprv_malloc(sizeof(UFILE)); in finit_owner() 174 …filenameBuffer = static_cast<char *>(uprv_malloc(++filenameLength)); // add one for zero terminati… in u_fopen_u() 219 result = (UFILE*) uprv_malloc(sizeof(UFILE)); in u_fstropen()
|