Home
last modified time | relevance | path

Searched refs:uprv_malloc (Results 1 – 25 of 171) sorted by relevance

1234567

/external/icu/icu4c/source/tools/genrb/
Dwrtxml.cpp81 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 …]
Dgenrb.cpp303 … char *nameWithoutSuffix = static_cast<char *>(uprv_malloc(uprv_strlen(poolResName) + 1)); in main()
581 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in processFile()
591 inputDirBuf = uprv_strncpy((char *)uprv_malloc(filenameSize), filename, filenameSize); in processFile()
607 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in processFile()
633 openFileName = (char *) uprv_malloc(dirlen + filelen + 1); in processFile()
762 basename = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(filename) + 1)); in make_res_filename()
770 dirname = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(filename) + 1)); in make_res_filename()
780 resName = (char*) uprv_malloc(sizeof(char) * (uprv_strlen(dirname) in make_res_filename()
803 resName = (char*) uprv_malloc(sizeof(char) * (dirlen + pkgLen + basenamelen + 8)); in make_res_filename()
/external/icu/icu4c/source/test/intltest/
Didnaref.cpp147 b1 = (uint32_t*) uprv_malloc(b1Len * sizeof(uint32_t)); in convertToPuny()
168 b2 = (char*) uprv_malloc( b2Len * sizeof(char)); in convertToPuny()
217 b2 = (uint32_t*) uprv_malloc(b2Len * sizeof(uint32_t)); in convertFromPuny()
303 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toASCII()
362 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toASCII()
492 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
513 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in idnaref_toUnicode()
536 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
555 b3 = (UChar*) uprv_malloc(b3Len * U_SIZEOF_UCHAR); in idnaref_toUnicode()
735 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in idnaref_IDNToASCII()
[all …]
Dtextfile.cpp38 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/
Dcmemory.cpp45 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()
Ducnvsel.cpp166 (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()
697 struct Enumerator* result = (Enumerator*)uprv_malloc(sizeof(Enumerator)); in selectForMask()
707 UEnumeration *en = (UEnumeration *)uprv_malloc(sizeof(UEnumeration)); in selectForMask()
722 result->index = (int16_t*) uprv_malloc(numOnes * sizeof(int16_t)); in selectForMask()
756 uint32_t* mask = (uint32_t*) uprv_malloc(columns * 4); in ucnvsel_selectForString()
[all …]
Dcmemory.h55 uprv_malloc(size_t s) U_MALLOC_ATTR U_ALLOC_SIZE_ATTR(1);
239 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndReset()
255 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in allocateInsteadAndCopy()
452 T *p=(T *)uprv_malloc(newCapacity*sizeof(T)); in resize()
485 p=(T *)uprv_malloc(length*sizeof(T)); in orphanOrClone()
626 H *p=(H *)uprv_malloc(sizeof(H)+newCapacity*sizeof(T)); in resize()
665 p=(H *)uprv_malloc(sizeof(H)+length*sizeof(T)); in orphanOrClone()
Dcaniter.cpp185 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()
Duobject.cpp62 return uprv_malloc(size); in operator new()
72 return uprv_malloc(size); in operator new[]()
Duidna.cpp233 b1 = (UChar*) uprv_malloc(srcLength * U_SIZEOF_UCHAR); in _internal_toASCII()
261 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toASCII()
343 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in _internal_toASCII()
462 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in _internal_toUnicode()
502 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in _internal_toUnicode()
520 b3 = (UChar*) uprv_malloc(b3Len * U_SIZEOF_UCHAR); in _internal_toUnicode()
881 b1 = (UChar*) uprv_malloc(b1Len * U_SIZEOF_UCHAR); in uidna_compare()
896 b2 = (UChar*) uprv_malloc(b2Len * U_SIZEOF_UCHAR); in uidna_compare()
Duloc_keytype.cpp157 char* bcpKeyIdBuf = (char*)uprv_malloc(bcpKeyIdLen + 1); in initFromResourceBundle()
232 char* legacyTypeIdBuf = (char*)uprv_malloc(legacyTypeIdLen + 1); in initFromResourceBundle()
266 char* bcpTypeIdBuf = (char*)uprv_malloc(bcpTypeIdLen + 1); in initFromResourceBundle()
284 LocExtType* t = (LocExtType*)uprv_malloc(sizeof(LocExtType)); in initFromResourceBundle()
324 char* fromBuf = (char*)uprv_malloc(fromLen + 1); in initFromResourceBundle()
383 LocExtKeyData* keyData = (LocExtKeyData*)uprv_malloc(sizeof(LocExtKeyData)); in initFromResourceBundle()
Dustrenum.cpp92 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()
Dulist.cpp43 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()
Duloc_tag.cpp1055 var = (VariantListEntry*)uprv_malloc(sizeof(VariantListEntry)); in _appendVariantsToLanguageTag()
1230 attr = (AttributeListEntry*)uprv_malloc(sizeof(AttributeListEntry)); in _appendKeywordsToLanguageTag()
1235 attrValue = (char*)uprv_malloc(attrBufLength + 1); in _appendKeywordsToLanguageTag()
1343 ext = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendKeywordsToLanguageTag()
1363 ext = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendKeywordsToLanguageTag()
1497 attr = (AttributeListEntry*)uprv_malloc(sizeof(AttributeListEntry)); in _appendLDMLExtensionAsKeywords()
1537 kwd = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendLDMLExtensionAsKeywords()
1719 kwd = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendLDMLExtensionAsKeywords()
1785 kwdBuf = (char*)uprv_malloc(kwdBufLength); in _appendKeywords()
1808 kwd = (ExtensionListEntry*)uprv_malloc(sizeof(ExtensionListEntry)); in _appendKeywords()
[all …]
Dutrie2_builder.cpp126 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()
317 trie->memory=uprv_malloc(other->length); in utrie2_clone()
578 data=(uint32_t *)uprv_malloc(capacity*4); in allocDataBlock()
1377 trie->memory=uprv_malloc(length); in utrie2_freeze()
Dpropsvec.cpp58 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()
Dustr_wcs.cpp44 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()
Dcstring.cpp317 char *dup = (char *) uprv_malloc(len); in uprv_strdup()
333 dup = (char*)uprv_malloc(n+1); in uprv_strndup()
/external/icu/icu4c/source/tools/toolutil/
Dflagparser.cpp38 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/cintltst/
Ducnvseltst.c58 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/icu4c/source/test/perf/usetperf/
Dbitset.cpp26 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/i18n/
Dsearch.cpp30 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()
Dvzone.cpp88 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()
Dwinnmfmt.cpp52 #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()
Dsortkey.cpp102 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()

1234567