/external/jhead/ |
D | main.c | 510 static int addKeyValueString(char** buf, int bufLen, const char* key, const char* value) { in addKeyValueString() argument 519 if (newLen >= bufLen) { in addKeyValueString() 521 bufLen = newLen + 5; in addKeyValueString() 522 ALOGE("reallocing to %d", bufLen); in addKeyValueString() 524 bufLen = newLen + 500; in addKeyValueString() 526 *buf = realloc(*buf, bufLen); in addKeyValueString() 532 snprintf(*buf + strlen(*buf), bufLen, "%s%s%s", key, valueLen, value); in addKeyValueString() 537 return bufLen; in addKeyValueString() 541 static int addKeyValueInt(char** buf, int bufLen, const char* key, int value) { in addKeyValueInt() argument 545 return addKeyValueString(buf, bufLen, key, valueStr); in addKeyValueInt() [all …]
|
/external/icu/icu4c/source/samples/numfmt/ |
D | util.cpp | 66 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); in uprintf() local 67 if(bufLen < sizeof(stackBuffer)) { in uprintf() 70 buf = new char[bufLen + 1]; in uprintf() 71 bufLen = str.extract(0, 0x7fffffff, buf, bufLen + 1, "UTF-8"); in uprintf()
|
/external/icu/icu4c/source/common/ |
D | unifiedcache.h | 113 virtual char *writeDescription(char *buffer, int32_t bufLen) const { in writeDescription() argument 115 uprv_strncpy(buffer, s, bufLen); in writeDescription() 116 buffer[bufLen - 1] = 0; in writeDescription() 166 virtual char *writeDescription(char *buffer, int32_t bufLen) const { in writeDescription() argument 168 uprv_strncpy(buffer, s, bufLen); in writeDescription() 169 buffer[bufLen - 1] = 0; in writeDescription()
|
D | uloc.cpp | 925 int32_t bufLen; in uloc_setKeywordValue() local 942 bufLen = (int32_t)uprv_strlen(buffer); in uloc_setKeywordValue() 947 if(bufferCapacity<bufLen) { in uloc_setKeywordValue() 967 return bufLen; in uloc_setKeywordValue() 970 needLen = bufLen+1+keywordNameLen+1+keywordValueLen; in uloc_setKeywordValue() 975 startSearchHere=buffer+bufLen; in uloc_setKeywordValue() 1038 return bufLen; /* no change in size */ in uloc_setKeywordValue() 1042 uprv_memmove(nextSeparator - delta, nextSeparator, bufLen-(nextSeparator-buffer)); in uloc_setKeywordValue() 1045 bufLen -= delta; in uloc_setKeywordValue() 1046 buffer[bufLen]=0; in uloc_setKeywordValue() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | nptrans.cpp | 160 int32_t bufLen = rsource.length(); in map() local 165 for(;bufIndex<bufLen;){ in map() 166 U16_NEXT(buffer, bufIndex, bufLen, ch); in map() 174 if(bufLen < destCapacity){ in map() 175 uprv_memcpy(dest,buffer,bufLen*U_SIZEOF_UCHAR); in map() 178 return u_terminateUChars(dest, destCapacity, bufLen, &status); in map()
|
D | ucaconf.cpp | 116 int32_t bufLen = (int32_t)uprv_strlen(buffer); in openTestFile() local 124 uprv_strcpy(buffer+bufLen, ext); in openTestFile() 129 uprv_strcpy(buffer+bufLen, "_SHORT"); in openTestFile() 134 uprv_strcpy(buffer+bufLen, "_STUB"); in openTestFile() 139 *(buffer+bufLen) = 0; in openTestFile()
|
D | testidna.cpp | 721 int32_t bufLen = 0; in testIDNToUnicode() local 724 bufLen = (int32_t)strlen(domainNames[i]); in testIDNToUnicode() 725 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in testIDNToUnicode() 726 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in testIDNToUnicode() 747 int32_t bufLen = 0; in testIDNToASCII() local 750 bufLen = (int32_t)strlen(domainNames[i]); in testIDNToASCII() 751 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in testIDNToASCII() 752 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in testIDNToASCII() 901 int32_t bufLen=0; in testErrorCases() local 907 bufLen = (int32_t)strlen(errorCase.ascii); in testErrorCases() [all …]
|
D | tsmthred.cpp | 1246 size_t bufLen = strlen(buffer); in TestCollators() local 1254 strcpy(buffer+bufLen, ext); in TestCollators() 1259 strcpy(buffer+bufLen, "_SHORT"); in TestCollators() 1264 strcpy(buffer+bufLen, "_STUB"); in TestCollators() 1269 *(buffer+bufLen) = 0; in TestCollators()
|
/external/icu/icu4c/source/test/perf/DateFmtPerf/ |
D | DateFmtPerf.h | 130 int32_t bufLen = len + 16; in uprintf() local 132 buf = new char[bufLen + 1]; in uprintf() 216 int32_t bufLen = len + 16; in uprintf() local 218 buf = new char[bufLen + 1]; in uprintf() 666 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); in uprintf() local 667 if(bufLen < sizeof(stackBuffer)) { in uprintf() 670 buf = new char[bufLen + 1]; in uprintf() 671 bufLen = str.extract(0, 0x7fffffff, buf, bufLen + 1, "UTF-8"); in uprintf()
|
/external/icu/icu4c/source/tools/genrb/ |
D | wrtjava.c | 231 uint32_t bufLen = 0; in str_write_java() local 243 bufLen = uCharsToChars(buf,length,src,srcLen,status); in str_write_java() 253 if(bufLen+(tabCount*4) > columnCount ){ in str_write_java() 257 while(len < bufLen){ in str_write_java() 260 if (add < (bufLen-len)) { in str_write_java() 284 if(len+add<bufLen){ in str_write_java() 289 T_FileStream_write(out,current,bufLen-len); in str_write_java() 295 T_FileStream_write(out, buf,bufLen); in str_write_java()
|
D | rle.h | 40 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… 57 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* …
|
D | wrtxml.cpp | 400 int32_t bufLen = 0; in print() local 411 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,status); in print() 413 trim(&buf,&bufLen); in print() 415 write_utf8_file(out,UnicodeString(buf, bufLen, "UTF-8")); in print() 492 int32_t bufLen = 0; in printComments() local 511 buf = convertAndEscape(&buf, 0, &bufLen, trans, transLen, status); in printComments() 513 printAttribute("translate", UnicodeString(buf, bufLen, "UTF-8"), bufLen); in printComments() 620 int32_t bufLen = 0; in string_write_xml() local 632 buf = convertAndEscape(&buf, 0, &bufLen, res->u.fString.fChars, res->u.fString.fLength, status); in string_write_xml() 638 write_utf8_file(out, UnicodeString(buf, bufLen, "UTF-8")); in string_write_xml() [all …]
|
D | rle.c | 148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument 149 uint16_t* bufLimit = buffer+bufLen; in usArrayToRLEString() 194 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument 196 uint16_t* bufLimit = buffer+bufLen; in byteArrayToRLEString()
|
/external/icu/icu4c/source/samples/translit/ |
D | util.cpp | 56 int32_t bufLen = len + 16; in uprintf() local 58 buf = new char[bufLen + 1]; in uprintf()
|
/external/icu/icu4c/source/samples/msgfmt/ |
D | util.cpp | 56 int32_t bufLen = len + 16; in uprintf() local 58 buf = new char[bufLen + 1]; in uprintf()
|
/external/icu/icu4c/source/samples/datefmt/ |
D | util.cpp | 56 int32_t bufLen = len + 16; in uprintf() local 58 buf = new char[bufLen + 1]; in uprintf()
|
/external/icu/icu4c/source/test/cintltst/ |
D | idnatest.c | 460 int32_t bufLen = 0; in TestIDNToUnicode() local 465 bufLen = (int32_t)strlen(domainNames[i]); in TestIDNToUnicode() 466 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in TestIDNToUnicode() 467 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToUnicode() 489 int32_t bufLen = 0; in TestIDNToASCII() local 495 bufLen = (int32_t)strlen(domainNames[i]); in TestIDNToASCII() 496 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in TestIDNToASCII() 497 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToASCII()
|
D | capitst.c | 392 int32_t bufLen = 200000; in TestProperty() local 395 tempLength = ucol_getRulesEx(col,UCOL_TAILORING_ONLY,buffer,bufLen ); in TestProperty() 400 tempLength=ucol_getRulesEx(col,UCOL_FULL_RULES,buffer,bufLen ); in TestProperty() 2118 int32_t bufLen; in doSetsTest() local 2121 bufLen = u_unescape(inSet, buffer, 512); in doSetsTest() 2122 uset_applyPattern(set, buffer, bufLen, 0, status); in doSetsTest() 2130 bufLen = uset_toPattern(set, buffer, UPRV_LENGTHOF(buffer), TRUE, status); in doSetsTest() 2131 log_info(" missing: %s\n", aescstrdup(buffer, bufLen)); in doSetsTest() 2132 bufLen = uset_toPattern(ref, buffer, UPRV_LENGTHOF(buffer), TRUE, status); in doSetsTest() 2133 log_info(" total: size=%i %s\n", uset_getItemCount(ref), aescstrdup(buffer, bufLen)); in doSetsTest() [all …]
|
D | crestst.c | 779 int32_t bufLen = (int32_t)strlen(testline)+10; in TestFileStream() local 780 char* buf = (char*) malloc(bufLen); in TestFileStream() 864 T_FileStream_readLine(stream,buf,bufLen); in TestFileStream() 872 retLen = T_FileStream_read(stream, buf, bufLen); in TestFileStream()
|
/external/libcxxabi/src/Unwind/ |
D | AddressSpace.hpp | 143 bool findFunctionName(pint_t addr, char *buf, size_t bufLen, 444 size_t bufLen, in findFunctionName() argument 450 snprintf(buf, bufLen, "%s", dyldInfo.dli_sname); in findFunctionName() 483 bool findFunctionName(pint_t addr, char *buf, size_t bufLen, 540 size_t bufLen, unw_word_t *offset) { in findFunctionName() argument
|
D | libunwind.cpp | 258 size_t bufLen, unw_word_t *offset) { in unw_get_proc_name() argument 261 static_cast<unsigned long>(bufLen)); in unw_get_proc_name() 263 if (co->getFunctionName(buf, bufLen, offset)) in unw_get_proc_name()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | toolutil.h | 95 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status);
|
D | toolutil.cpp | 126 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status) { in findDirname() argument 150 if((resultLen+1) <= bufLen) { in findDirname()
|
/external/clang/test/SemaObjC/ |
D | objc-cf-audited-warning.m | 18 …temRepresentation(CFAllocatorRef allocator, const UInt8 *buffer, CFIndex bufLen, Boolean isDirecto…
|
/external/icu/icu4c/source/test/perf/collationperf/ |
D | collperf.cpp | 1378 int bufLen = 10000; in openRulesCollator() local 1379 UChar *buf = (UChar *)malloc(bufLen * sizeof(UChar)); in openRulesCollator() 1392 if (i >= bufLen) { in openRulesCollator() 1394 bufLen += 10000; in openRulesCollator() 1395 buf = (UChar *)realloc(buf, bufLen); in openRulesCollator()
|