/external/jhead/ |
D | main.c | 511 static int addKeyValueString(char** buf, int bufLen, const char* key, const char* value) { in addKeyValueString() argument 520 if (newLen >= bufLen) { in addKeyValueString() 522 bufLen = newLen + 5; in addKeyValueString() 523 ALOGE("reallocing to %d", bufLen); in addKeyValueString() 525 bufLen = newLen + 500; in addKeyValueString() 527 *buf = realloc(*buf, bufLen); in addKeyValueString() 533 snprintf(*buf + strlen(*buf), bufLen, "%s%s%s", key, valueLen, value); in addKeyValueString() 538 return bufLen; in addKeyValueString() 542 static int addKeyValueInt(char** buf, int bufLen, const char* key, int value) { in addKeyValueInt() argument 546 return addKeyValueString(buf, bufLen, key, valueStr); in addKeyValueInt() [all …]
|
/external/conscrypt/src/platform/java/org/conscrypt/ |
D | Hex.java | 41 int bufLen = 8; // Max number of hex digits in an int in intToHexString() local 42 char[] buf = new char[bufLen]; in intToHexString() 43 int cursor = bufLen; in intToHexString() 47 } while ((i >>>= 4) != 0 || (bufLen - cursor < minWidth)); in intToHexString() 49 return new String(buf, cursor, bufLen - cursor); in intToHexString()
|
/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/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/ |
D | DetectingViewer.java | 216 int bufLen = 0; in filter() local 222 int bytesRead = in.read(buffer, bufLen, bytesRemaining); in filter() 228 bufLen += bytesRead; in filter() 240 for (int i = 0; i < bufLen; i += 1) { in filter() 246 if (openTag(buffer, i + 1, bufLen, scriptTag) || in filter() 247 openTag(buffer, i + 1, bufLen, styleTag)) { in filter() 249 } else if (closedTag(buffer, i + 1, bufLen, scriptTag) || in filter() 250 closedTag(buffer, i + 1, bufLen, styleTag)) { in filter()
|
/external/icu/icu4c/source/common/ |
D | unifiedcache.h | 114 virtual char *writeDescription(char *buffer, int32_t bufLen) const { in writeDescription() argument 116 uprv_strncpy(buffer, s, bufLen); in writeDescription() 117 buffer[bufLen - 1] = 0; in writeDescription() 167 virtual char *writeDescription(char *buffer, int32_t bufLen) const { in writeDescription() argument 169 uprv_strncpy(buffer, s, bufLen); in writeDescription() 170 buffer[bufLen - 1] = 0; in writeDescription()
|
D | uloc.cpp | 933 int32_t bufLen; in uloc_setKeywordValue() local 950 bufLen = (int32_t)uprv_strlen(buffer); in uloc_setKeywordValue() 955 if(bufferCapacity<bufLen) { in uloc_setKeywordValue() 975 return bufLen; in uloc_setKeywordValue() 978 needLen = bufLen+1+keywordNameLen+1+keywordValueLen; in uloc_setKeywordValue() 983 startSearchHere=buffer+bufLen; in uloc_setKeywordValue() 1046 return bufLen; /* no change in size */ in uloc_setKeywordValue() 1050 uprv_memmove(nextSeparator - delta, nextSeparator, bufLen-(nextSeparator-buffer)); in uloc_setKeywordValue() 1053 bufLen -= delta; in uloc_setKeywordValue() 1054 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 …]
|
/external/icu/icu4c/source/tools/genrb/ |
D | wrtjava.cpp | 232 uint32_t bufLen = 0; in str_write_java() local 244 bufLen = uCharsToChars(buf,length,src,srcLen,status); in str_write_java() 254 if(bufLen+(tabCount*4) > columnCount ){ in str_write_java() 258 while(len < bufLen){ in str_write_java() 261 if (add < (bufLen-len)) { in str_write_java() 285 if(len+add<bufLen){ in str_write_java() 290 T_FileStream_write(out,current,bufLen-len); in str_write_java() 296 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 512 buf = convertAndEscape(&buf, 0, &bufLen, trans, transLen, status); in printComments() 514 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->getBuffer(), res->length(), 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/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/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/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/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/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()
|
/external/libunwind_llvm/src/ |
D | AddressSpace.hpp | 150 bool findFunctionName(pint_t addr, char *buf, size_t bufLen, 458 size_t bufLen, in findFunctionName() argument 464 snprintf(buf, bufLen, "%s", dyldInfo.dli_sname); in findFunctionName() 497 bool findFunctionName(pint_t addr, char *buf, size_t bufLen, 554 size_t bufLen, unw_word_t *offset) { in findFunctionName() argument
|
D | libunwind.cpp | 259 size_t bufLen, unw_word_t *offset) { in unw_get_proc_name() argument 262 static_cast<unsigned long>(bufLen)); in unw_get_proc_name() 264 if (co->getFunctionName(buf, bufLen, offset)) in unw_get_proc_name()
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/biz/base64Coder/ |
D | Base64Coder.java | 108 int bufLen = ((iLen + 2) / 3) * 4 + lines * lineSeparator.length(); in encodeLines() local 109 StringBuilder buf = new StringBuilder(bufLen); in encodeLines()
|
/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/libgdx/gdx/src/com/badlogic/gdx/utils/ |
D | Base64Coder.java | 109 int bufLen = ((iLen + 2) / 3) * 4 + lines * lineSeparator.length(); in encodeLines() local 110 StringBuilder buf = new StringBuilder(bufLen); in encodeLines()
|
/external/clang/test/SemaObjC/ |
D | objc-cf-audited-warning.m | 18 …temRepresentation(CFAllocatorRef allocator, const UInt8 *buffer, CFIndex bufLen, Boolean isDirecto…
|