Home
last modified time | relevance | path

Searched refs:bufLen (Results 1 – 25 of 26) sorted by relevance

12

/external/jhead/
Dmain.c481 static int addKeyValueString(char** buf, int bufLen, const char* key, const char* value) { in addKeyValueString() argument
490 if (newLen >= bufLen) { in addKeyValueString()
492 bufLen = newLen + 5; in addKeyValueString()
493 ALOGE("reallocing to %d", bufLen); in addKeyValueString()
495 bufLen = newLen + 500; in addKeyValueString()
497 *buf = realloc(*buf, bufLen); in addKeyValueString()
503 snprintf(*buf + strlen(*buf), bufLen, "%s%s%s", key, valueLen, value); in addKeyValueString()
508 return bufLen; in addKeyValueString()
512 static int addKeyValueInt(char** buf, int bufLen, const char* key, int value) { in addKeyValueInt() argument
516 return addKeyValueString(buf, bufLen, key, valueStr); in addKeyValueInt()
[all …]
/external/icu4c/samples/numfmt/
Dutil.cpp66 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/icu4c/test/perf/DateFmtPerf/
DDateFmtPerf.h129 int32_t bufLen = len + 16; in uprintf() local
131 buf = new char[bufLen + 1]; in uprintf()
215 int32_t bufLen = len + 16; in uprintf() local
217 buf = new char[bufLen + 1]; in uprintf()
345 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); in uprintf() local
346 if(bufLen < sizeof(stackBuffer)) { in uprintf()
349 buf = new char[bufLen + 1]; in uprintf()
350 bufLen = str.extract(0, 0x7fffffff, buf, bufLen + 1, "UTF-8"); in uprintf()
/external/icu4c/test/intltest/
Dnptrans.cpp160 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()
Ducaconf.cpp114 int32_t bufLen = (int32_t)uprv_strlen(buffer); in openTestFile() local
122 uprv_strcpy(buffer+bufLen, ext); in openTestFile()
127 uprv_strcpy(buffer+bufLen, "_SHORT"); in openTestFile()
132 uprv_strcpy(buffer+bufLen, "_STUB"); in openTestFile()
137 *(buffer+bufLen) = 0; in openTestFile()
Dtestidna.cpp721 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 …]
Dtsmthred.cpp1106 size_t bufLen = strlen(buffer); in TestCollators() local
1114 strcpy(buffer+bufLen, ext); in TestCollators()
1119 strcpy(buffer+bufLen, "_SHORT"); in TestCollators()
1124 strcpy(buffer+bufLen, "_STUB"); in TestCollators()
1129 *(buffer+bufLen) = 0; in TestCollators()
/external/icu4c/common/
Duloc.cpp920 int32_t bufLen; in uloc_setKeywordValue() local
937 bufLen = (int32_t)uprv_strlen(buffer); in uloc_setKeywordValue()
942 if(bufferCapacity<bufLen) { in uloc_setKeywordValue()
962 return bufLen; in uloc_setKeywordValue()
965 needLen = bufLen+1+keywordNameLen+1+keywordValueLen; in uloc_setKeywordValue()
970 startSearchHere=buffer+bufLen; in uloc_setKeywordValue()
1033 return bufLen; /* no change in size */ in uloc_setKeywordValue()
1037 uprv_memmove(nextSeparator - delta, nextSeparator, bufLen-(nextSeparator-buffer)); in uloc_setKeywordValue()
1040 bufLen -= delta; in uloc_setKeywordValue()
1041 buffer[bufLen]=0; in uloc_setKeywordValue()
[all …]
Dlocid.cpp997 Locale::getKeywordValue(const char* keywordName, char *buffer, int32_t bufLen, UErrorCode &status) … in getKeywordValue() argument
999 return uloc_getKeywordValue(fullName, keywordName, buffer, bufLen, &status); in getKeywordValue()
/external/icu4c/tools/genrb/
Drle.h40 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* …
Dwrtjava.c231 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()
Dwrtxml.cpp390 int32_t bufLen = 0; in print() local
401 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,status); in print()
403 trim(&buf,&bufLen); in print()
405 write_utf8_file(out,UnicodeString(buf, bufLen, "UTF-8")); in print()
482 int32_t bufLen = 0; in printComments() local
501 buf = convertAndEscape(&buf, 0, &bufLen, trans, transLen, status); in printComments()
503 printAttribute("translate", UnicodeString(buf, bufLen, "UTF-8"), bufLen); in printComments()
610 int32_t bufLen = 0; in string_write_xml() local
622 buf = convertAndEscape(&buf, 0, &bufLen, res->u.fString.fChars, res->u.fString.fLength, status); in string_write_xml()
628 write_utf8_file(out, UnicodeString(buf, bufLen, "UTF-8")); in string_write_xml()
[all …]
Drle.c148 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/icu4c/samples/msgfmt/
Dutil.cpp56 int32_t bufLen = len + 16; in uprintf() local
58 buf = new char[bufLen + 1]; in uprintf()
/external/icu4c/samples/datefmt/
Dutil.cpp56 int32_t bufLen = len + 16; in uprintf() local
58 buf = new char[bufLen + 1]; in uprintf()
/external/icu4c/samples/translit/
Dutil.cpp56 int32_t bufLen = len + 16; in uprintf() local
58 buf = new char[bufLen + 1]; in uprintf()
/external/webkit/Source/WebCore/bridge/jni/
DJNIUtility.cpp37 static jint KJSGetCreatedJavaVMs(JavaVM** vmBuf, jsize bufLen, jsize* nVMs) in KJSGetCreatedJavaVMs() argument
51 return functionPointer(vmBuf, bufLen, nVMs); in KJSGetCreatedJavaVMs()
71 jsize bufLen = 1; in getJavaVM() local
76 jniError = KJSGetCreatedJavaVMs(jvmArray, bufLen, &nJVMs); in getJavaVM()
/external/icu4c/test/cintltst/
Didnatest.c462 int32_t bufLen = 0; in TestIDNToUnicode() local
467 bufLen = (int32_t)strlen(domainNames[i]); in TestIDNToUnicode()
468 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in TestIDNToUnicode()
469 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToUnicode()
491 int32_t bufLen = 0; in TestIDNToASCII() local
497 bufLen = (int32_t)strlen(domainNames[i]); in TestIDNToASCII()
498 bufLen = u_unescape(domainNames[i],buf, bufLen+1); in TestIDNToASCII()
499 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status); in TestIDNToASCII()
Dcrestst.c782 int32_t bufLen = (int32_t)strlen(testline)+10; in TestFileStream() local
783 char* buf = (char*) malloc(bufLen); in TestFileStream()
867 T_FileStream_readLine(stream,buf,bufLen); in TestFileStream()
875 retLen = T_FileStream_read(stream, buf, bufLen); in TestFileStream()
Dcapitst.c2104 int32_t bufLen; in doSetsTest() local
2107 bufLen = u_unescape(inSet, buffer, 512); in doSetsTest()
2108 uset_applyPattern(set, buffer, bufLen, 0, status); in doSetsTest()
2118 bufLen = u_unescape(outSet, buffer, 512); in doSetsTest()
2119 uset_applyPattern(set, buffer, bufLen, 0, status); in doSetsTest()
/external/icu4c/tools/toolutil/
Dtoolutil.h95 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status);
Dtoolutil.cpp115 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status) { in findDirname() argument
139 if((resultLen+1) <= bufLen) { in findDirname()
/external/icu4c/i18n/
Ducol_sit.cpp729 addSpecial(contContext *context, UChar *buffer, int32_t bufLen, in addSpecial() argument
742 addSpecial(context, buffer, bufLen, newCE, leftIndex, rightIndex, status); in addSpecial()
764 addSpecial(context, buffer, bufLen, newCE, leftIndex, rightIndex, status); in addSpecial()
776 if(rightIndex == bufLen-1) { in addSpecial()
784 addSpecial(context, buffer, bufLen, newCE, leftIndex, rightIndex+1, status); in addSpecial()
/external/icu4c/test/perf/collationperf/
Dcollperf.cpp1378 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()
/external/chromium/crypto/third_party/nss/
Dsha512.cc1302 dumpHash32(const unsigned char *buf, unsigned int bufLen) in dumpHash32() argument
1305 for (i = 0; i < bufLen; i += 4) { in dumpHash32()
1325 dumpHash64(const unsigned char *buf, unsigned int bufLen) in dumpHash64() argument
1328 for (i = 0; i < bufLen; i += 8) { in dumpHash64()

12