/external/icu/icu4c/source/tools/genrb/ |
D | wrtxml.cpp | 79 char* dest = (char*)uprv_malloc(len); in write_utf8_file() 107 result = (char *)uprv_malloc(sizeof(char)*uprv_strlen(id) + 1); in getID() 111 result = (char *)uprv_malloc(sizeof(char)*(uprv_strlen(id) + 1 + uprv_strlen(curKey)) + 1); in getID() 188 char* localeID = (char*) uprv_malloc(idLen); in parseFilename() 206 canon = (char*) uprv_malloc(canonCapacity); in parseFilename() 247 dest = (char*) uprv_malloc(sizeof(char) * destCap); in convertAndEscape() 345 temp = (char*) uprv_malloc(sizeof(char)*destCap); in convertAndEscape() 406 buf = (char*) (uprv_malloc(bufCapacity)); in print() 436 note = (UChar*) uprv_malloc(U_SIZEOF_UCHAR * capacity); in printNoteElements() 493 UChar* desc = (UChar*) uprv_malloc(U_SIZEOF_UCHAR * capacity); in printComments() [all …]
|
D | genrb.cpp | 300 … char *nameWithoutSuffix = static_cast<char *>(uprv_malloc(uprv_strlen(poolResName) + 1)); in main() 578 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in processFile() 588 inputDirBuf = uprv_strncpy((char *)uprv_malloc(filenameSize), filename, filenameSize); in processFile() 604 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in processFile() 630 openFileName = (char *) uprv_malloc(dirlen + filelen + 1); in processFile() 759 basename = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(filename) + 1)); in make_res_filename() 767 dirname = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(filename) + 1)); in make_res_filename() 777 resName = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(dirname) in make_res_filename() 800 resName = (char*) uprv_malloc(sizeof(char) * (dirlen + pkgLen + basenamelen + 8)); in make_res_filename()
|
/external/icu/icu4c/source/test/intltest/ |
D | idnaref.cpp | 145 b1 = (uint32_t*) uprv_malloc(b1Len * sizeof(uint32_t)); in convertToPuny() 166 b2 = (char*) uprv_malloc( b2Len * sizeof(char)); in convertToPuny() 215 b2 = (uint32_t*) uprv_malloc(b2Len * sizeof(uint32_t)); in convertFromPuny() 301 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII() 360 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toASCII() 490 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toUnicode() 511 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode() 534 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toUnicode() 553 b3 = (UChar*) uprv_malloc(b3Len * U_SIZEOF_UCHAR); in idnaref_toUnicode() 733 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII() [all …]
|
D | textfile.cpp | 36 name = uprv_malloc(uprv_strlen(_name) + 1); in TextFile() 37 encoding = uprv_malloc(uprv_strlen(_encoding) + 1); in TextFile() 168 char* newbuffer = (char*) uprv_malloc(mincapacity); in ensureCapacity()
|
/external/icu/icu4c/source/common/ |
D | ucnvsel.cpp | 163 (UConverterSelector*)uprv_malloc(sizeof(UConverterSelector))); in ucnvsel_open() 175 (char**)uprv_malloc(converterListSize * sizeof(char*)); in ucnvsel_open() 195 char* allStrings = (char*) uprv_malloc(totalSize); in ucnvsel_open() 516 swapped = (uint8_t*)uprv_malloc(totalSize); in ucnvsel_openFromSerialized() 548 UConverterSelector* sel = (UConverterSelector*)uprv_malloc(sizeof(UConverterSelector)); in ucnvsel_openFromSerialized() 550 (char **)uprv_malloc( in ucnvsel_openFromSerialized() 694 struct Enumerator* result = (Enumerator*)uprv_malloc(sizeof(Enumerator)); in selectForMask() 704 UEnumeration *en = (UEnumeration *)uprv_malloc(sizeof(UEnumeration)); in selectForMask() 719 result->index = (int16_t*) uprv_malloc(numOnes * sizeof(int16_t)); in selectForMask() 753 uint32_t* mask = (uint32_t*) uprv_malloc(columns * 4); in ucnvsel_selectForString() [all …]
|
D | cmemory.h | 74 uprv_malloc(size_t s) U_MALLOC_ATTR U_ALLOC_SIZE_ATTR(1); 260 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndReset() 276 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndCopy() 420 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in resize() 453 p=(T *)uprv_malloc(length*sizeof(T)); in orphanOrClone() 596 H *p=(H *)uprv_malloc(sizeof(H)+newCapacity*sizeof(T)); in resize() 635 p=(H *)uprv_malloc(sizeof(H)+length*sizeof(T)); in orphanOrClone()
|
D | cmemory.c | 67 uprv_malloc(size_t s) { in uprv_malloc() function 94 return uprv_malloc(size); in uprv_realloc() 130 mem = uprv_malloc(size); in uprv_calloc()
|
D | uobject.cpp | 60 return uprv_malloc(size); in operator new() 70 return uprv_malloc(size); in operator new[]()
|
D | caniter.cpp | 183 pieces = (UnicodeString **)uprv_malloc(sizeof(UnicodeString *)); in setSource() 184 pieces_lengths = (int32_t*)uprv_malloc(1 * sizeof(int32_t)); in setSource() 186 current = (int32_t*)uprv_malloc(1 * sizeof(int32_t)); in setSource() 229 pieces = (UnicodeString **)uprv_malloc(list_length * sizeof(UnicodeString *)); in setSource() 231 pieces_lengths = (int32_t*)uprv_malloc(list_length * sizeof(int32_t)); in setSource() 232 current = (int32_t*)uprv_malloc(list_length * sizeof(int32_t)); in setSource()
|
D | uloc_keytype.cpp | 153 char* bcpKeyIdBuf = (char*)uprv_malloc(bcpKeyIdLen + 1); in initFromResourceBundle() 224 char* legacyTypeIdBuf = (char*)uprv_malloc(legacyTypeIdLen + 1); in initFromResourceBundle() 258 char* bcpTypeIdBuf = (char*)uprv_malloc(bcpTypeIdLen + 1); in initFromResourceBundle() 276 LocExtType* t = (LocExtType*)uprv_malloc(sizeof(LocExtType)); in initFromResourceBundle() 316 char* fromBuf = (char*)uprv_malloc(fromLen + 1); in initFromResourceBundle() 375 LocExtKeyData* keyData = (LocExtKeyData*)uprv_malloc(sizeof(LocExtKeyData)); in initFromResourceBundle()
|
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() 460 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toUnicode() 500 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in _internal_toUnicode() 518 b3 = (UChar*) uprv_malloc(b3Len * U_SIZEOF_UCHAR); in _internal_toUnicode() 879 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in uidna_compare() 894 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in uidna_compare()
|
D | ustrenum.cpp | 90 chars=(char *)uprv_malloc(capacity); in ensureCharsCapacity() 264 result = (UEnumeration*) uprv_malloc(sizeof(UEnumeration)); in uenum_openFromStringEnumeration() 362 result = (UCharStringEnumeration*) uprv_malloc(sizeof(UCharStringEnumeration)); in uenum_openCharStringsEnumeration() 381 result = (UCharStringEnumeration*) uprv_malloc(sizeof(UCharStringEnumeration)); in uenum_openUCharStringsEnumeration()
|
D | ulist.c | 42 newList = (UList *)uprv_malloc(sizeof(UList)); in ulist_createEmptyList() 76 newItem = (UListNode *)uprv_malloc(sizeof(UListNode)); in ulist_addItemEndList() 103 newItem = (UListNode *)uprv_malloc(sizeof(UListNode)); in ulist_addItemBeginList()
|
D | uloc_tag.c | 817 var = (VariantListEntry*)uprv_malloc(sizeof(VariantListEntry)); in _appendVariantsToLanguageTag() 965 attr = (AttributeListEntry*)uprv_malloc(sizeof(AttributeListEntry)); in _appendKeywordsToLanguageTag() 970 attrValue = (char*)uprv_malloc(attrBufLength + 1); in _appendKeywordsToLanguageTag() 1068 ext = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendKeywordsToLanguageTag() 1089 ext = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendKeywordsToLanguageTag() 1228 attr = (AttributeListEntry*)uprv_malloc(sizeof(AttributeListEntry)); in _appendLDMLExtensionAsKeywords() 1267 kwd = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendLDMLExtensionAsKeywords() 1449 kwd = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendLDMLExtensionAsKeywords() 1515 kwdBuf = (char*)uprv_malloc(kwdBufLength); in _appendKeywords() 1538 kwd = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendKeywords() [all …]
|
D | utrie2_builder.cpp | 117 trie=(UTrie2 *)uprv_malloc(sizeof(UTrie2)); in utrie2_open() 118 newTrie=(UNewTrie2 *)uprv_malloc(sizeof(UNewTrie2)); in utrie2_open() 119 data=(uint32_t *)uprv_malloc(UNEWTRIE2_INITIAL_DATA_LENGTH*4); in utrie2_open() 237 trie=(UNewTrie2 *)uprv_malloc(sizeof(UNewTrie2)); in cloneBuilder() 242 trie->data=(uint32_t *)uprv_malloc(other->dataCapacity*4); in cloneBuilder() 287 trie=(UTrie2 *)uprv_malloc(sizeof(UTrie2)); in utrie2_clone() 294 trie->memory=uprv_malloc(other->length); in utrie2_clone() 539 data=(uint32_t *)uprv_malloc(capacity*4); in allocDataBlock() 1322 trie->memory=uprv_malloc(length); in utrie2_freeze()
|
D | propsvec.c | 56 pv=(UPropsVectors *)uprv_malloc(sizeof(UPropsVectors)); in upvec_open() 57 v=(uint32_t *)uprv_malloc(UPVEC_INITIAL_ROWS*columns*4); in upvec_open() 216 newVectors=(uint32_t *)uprv_malloc(newMaxRows*columns*4); in upvec_setValue() 463 clonedArray=(uint32_t *)uprv_malloc(byteLength); in upvec_cloneArray()
|
D | cstring.c | 315 char *dup = (char *) uprv_malloc(len); in uprv_strdup() 331 dup = (char*)uprv_malloc(n+1); in uprv_strndup()
|
D | ustr_wcs.cpp | 42 char *newBuffer=(char *)uprv_malloc(reqCapacity*size); in u_growAnyBufferFromStatic() 149 intTarget = (wchar_t*)uprv_malloc( intTargetCapacity * sizeof(wchar_t) ); in _strToWCS() 390 pWStack =(wchar_t*) uprv_malloc(sizeof(wchar_t) * (nulLen + 1)); in _strFromWCS()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | flagparser.c | 36 buffer = uprv_malloc(sizeof(char) * currentBufferSize); in parseFlagsFile() 37 tmpFlagBuffer = uprv_malloc(sizeof(char) * flagBufferSize); in parseFlagsFile() 49 buffer = uprv_malloc(sizeof(char) * currentBufferSize); in parseFlagsFile()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ucnvseltst.c | 55 gAvailableNames = (const char **)uprv_malloc(gCountAvailable * sizeof(const char *)); in getAvailableNames() 83 names = (const char **)uprv_malloc(count * sizeof(char *)); in getEncodings() 235 tt->text = (char *)uprv_malloc(length + 1); in text_open() 276 resultsManually = (UBool*) uprv_malloc(gCountAvailable); in getResultsManually() 326 UBool* resultsFromSystem = (UBool*) uprv_malloc(gCountAvailable * sizeof(UBool)); in verifyResult() 357 new_buffer = (char *)uprv_malloc(ser_len); in serializeAndUnserialize()
|
/external/icu/icu4c/source/test/perf/usetperf/ |
D | bitset.cpp | 22 data = (int32_t*) uprv_malloc(len * BYTES_PER_WORD); in BitSet() 53 int32_t* newData = (int32_t*) uprv_malloc(newLen * BYTES_PER_WORD); in ensureCapacity()
|
/external/icu/icu4c/source/i18n/ |
D | search.cpp | 28 m_search_ = (USearch *)uprv_malloc(sizeof(USearch)); in SearchIterator() 345 m_search_ = (USearch *)uprv_malloc(sizeof(USearch)); in SearchIterator() 364 m_search_ = (USearch *)uprv_malloc(sizeof(USearch)); in SearchIterator() 381 m_search_ = (USearch *)uprv_malloc(sizeof(USearch)); in SearchIterator()
|
D | vzone.cpp | 86 result = (UChar*)uprv_malloc(resultLength); in vzone_write() 98 result = (UChar*)uprv_malloc(resultLength); in vzone_writeFromStart() 110 result = (UChar*)uprv_malloc(resultLength); in vzone_writeSimple()
|
D | winnmfmt.cpp | 48 #define NEW_ARRAY(type,count) (type *) uprv_malloc((count) * sizeof(type)) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 153 fFormatInfo = (FormatInfo*)uprv_malloc(sizeof(FormatInfo)); in Win32NumberFormat() 164 : NumberFormat(other), fFormatInfo((FormatInfo*)uprv_malloc(sizeof(FormatInfo))) in Win32NumberFormat()
|
D | sortkey.cpp | 100 uint8_t *newBytes = static_cast<uint8_t *>(uprv_malloc(newCapacity)); in reallocate() 226 uint8_t *result = (uint8_t*) uprv_malloc( sizeof(uint8_t) * fCount ); in toByteArray()
|