Searched refs:bufLen (Results 1 - 25 of 30) sorted by relevance

12

/external/jhead/
H A Dmain.c481 static int addKeyValueString(char** buf, int bufLen, const char* key, const char* value) { argument
490 if (newLen >= bufLen) {
492 bufLen = newLen + 5;
493 ALOGE("reallocing to %d", bufLen);
495 bufLen = newLen + 500;
497 *buf = realloc(*buf, bufLen);
503 snprintf(*buf + strlen(*buf), bufLen, "%s%s%s", key, valueLen, value);
508 return bufLen;
512 static int addKeyValueInt(char** buf, int bufLen, const char* key, int value) { argument
516 return addKeyValueString(buf, bufLen, ke
520 addKeyValueDouble(char** buf, int bufLen, const char* key, double value, const char* format) argument
528 addKeyValueRational(char** buf, int bufLen, const char* key, rat_t value) argument
548 int bufLen = 5; local
550 int bufLen = 1000; local
[all...]
/external/icu4c/tools/genrb/
H A Drle.h40 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status);
57 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status);
H A Dwrtxml.cpp388 int32_t bufLen = 0; local
399 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,status);
401 trim(&buf,&bufLen);
403 write_utf8_file(out,UnicodeString(buf, bufLen, "UTF-8"));
480 int32_t bufLen = 0; local
499 buf = convertAndEscape(&buf, 0, &bufLen, trans, transLen, status);
501 printAttribute("translate", UnicodeString(buf, bufLen, "UTF-8"), bufLen);
608 int32_t bufLen = 0; local
620 buf = convertAndEscape(&buf, 0, &bufLen, re
644 int32_t bufLen=0; local
[all...]
H A Drle.c148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status) { argument
149 uint16_t* bufLimit = buffer+bufLen;
194 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status) { argument
196 uint16_t* bufLimit = buffer+bufLen;
H A Dwrtjava.c232 uint32_t bufLen = 0; local
244 bufLen = uCharsToChars(buf,length,src,srcLen,status);
254 if(bufLen+(tabCount*4) > columnCount ){
258 while(len < bufLen){
261 if (add < (bufLen-len)) {
285 if(len+add<bufLen){
290 T_FileStream_write(out,current,bufLen-len);
296 T_FileStream_write(out, buf,bufLen);
/external/icu4c/samples/numfmt/
H A Dutil.cpp66 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); local
67 if(bufLen < sizeof(stackBuffer)) {
70 buf = new char[bufLen + 1];
71 bufLen = str.extract(0, 0x7fffffff, buf, bufLen + 1, "UTF-8");
/external/icu4c/samples/datefmt/
H A Dutil.cpp53 // int32_t bufLen = str.extract(0, len, buf); // Preflight
56 int32_t bufLen = len + 16; local
58 buf = new char[bufLen + 1];
59 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
/external/icu4c/samples/msgfmt/
H A Dutil.cpp53 // int32_t bufLen = str.extract(0, len, buf); // Preflight
56 int32_t bufLen = len + 16; local
58 buf = new char[bufLen + 1];
59 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
/external/icu4c/samples/translit/
H A Dutil.cpp53 // int32_t bufLen = str.extract(0, len, buf); // Preflight
56 int32_t bufLen = len + 16; local
58 buf = new char[bufLen + 1];
59 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
/external/icu4c/test/perf/DateFmtPerf/
H A DDateFmtPerf.h129 int32_t bufLen = len + 16; local
131 buf = new char[bufLen + 1];
132 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
215 int32_t bufLen = len + 16; local
217 buf = new char[bufLen + 1];
218 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
345 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); local
346 if(bufLen < sizeof(stackBuffer)) {
349 buf = new char[bufLen + 1];
350 bufLen
[all...]
/external/icu4c/test/intltest/
H A Dnptrans.cpp160 int32_t bufLen = rsource.length(); local
165 for(;bufIndex<bufLen;){
166 U16_NEXT(buffer, bufIndex, bufLen, ch);
174 if(bufLen < destCapacity){
175 uprv_memcpy(dest,buffer,bufLen*U_SIZEOF_UCHAR);
178 return u_terminateUChars(dest, destCapacity, bufLen, &status);
H A Ducaconf.cpp115 int32_t bufLen = (int32_t)uprv_strlen(buffer); local
123 uprv_strcpy(buffer+bufLen, ext);
128 uprv_strcpy(buffer+bufLen, "_SHORT");
133 uprv_strcpy(buffer+bufLen, "_STUB");
138 *(buffer+bufLen) = 0;
H A Dtestidna.cpp721 int32_t bufLen = 0; local
724 bufLen = (int32_t)strlen(domainNames[i]);
725 bufLen = u_unescape(domainNames[i],buf, bufLen+1);
726 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status);
747 int32_t bufLen = 0; local
750 bufLen = (int32_t)strlen(domainNames[i]);
751 bufLen = u_unescape(domainNames[i],buf, bufLen+1);
752 func(buf,bufLen,expecte
901 int32_t bufLen=0; local
[all...]
H A Dtsmthred.cpp941 size_t bufLen = strlen(buffer); local
949 strcpy(buffer+bufLen, ext);
954 strcpy(buffer+bufLen, "_SHORT");
959 strcpy(buffer+bufLen, "_STUB");
964 *(buffer+bufLen) = 0;
/external/icu4c/tools/toolutil/
H A Dtoolutil.h89 * @param bufLen the output buffer length
90 * @param status error code- may return U_BUFFER_OVERFLOW_ERROR if bufLen is too small.
91 * @return If successful, a pointer to the output buffer. If failure or bufLen is too small, NULL.
94 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status);
H A Dtoolutil.cpp111 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status) { argument
135 if((resultLen+1) <= bufLen) {
/external/icu4c/common/
H A Duloc.c929 int32_t bufLen; local
946 bufLen = (int32_t)uprv_strlen(buffer);
951 if(bufferCapacity<bufLen) {
971 return bufLen;
974 needLen = bufLen+1+keywordNameLen+1+keywordValueLen;
979 startSearchHere=buffer+bufLen;
1041 return bufLen; /* no change in size */
1045 uprv_memmove(nextSeparator - delta, nextSeparator, bufLen-(nextSeparator-buffer));
1048 bufLen -= delta;
1049 buffer[bufLen]
[all...]
H A Dlocid.cpp1061 Locale::getKeywordValue(const char* keywordName, char *buffer, int32_t bufLen, UErrorCode &status) const argument
1063 return uloc_getKeywordValue(fullName, keywordName, buffer, bufLen, &status);
/external/webkit/Source/WebCore/bridge/jni/
H A DJNIUtility.cpp37 static jint KJSGetCreatedJavaVMs(JavaVM** vmBuf, jsize bufLen, jsize* nVMs) argument
51 return functionPointer(vmBuf, bufLen, nVMs);
71 jsize bufLen = 1; local
76 jniError = KJSGetCreatedJavaVMs(jvmArray, bufLen, &nJVMs);
/external/icu4c/test/cintltst/
H A Didnatest.c462 int32_t bufLen = 0; local
467 bufLen = (int32_t)strlen(domainNames[i]);
468 bufLen = u_unescape(domainNames[i],buf, bufLen+1);
469 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status);
491 int32_t bufLen = 0; local
497 bufLen = (int32_t)strlen(domainNames[i]);
498 bufLen = u_unescape(domainNames[i],buf, bufLen+1);
499 func(buf,bufLen,expecte
[all...]
H A Dcrestst.c782 int32_t bufLen = (int32_t)strlen(testline)+10; local
783 char* buf = (char*) malloc(bufLen);
867 T_FileStream_readLine(stream,buf,bufLen);
875 retLen = T_FileStream_read(stream, buf, bufLen);
H A Dcapitst.c411 int32_t bufLen = 200000;
414 tempLength = ucol_getRulesEx(col,UCOL_TAILORING_ONLY,buffer,bufLen );
419 tempLength=ucol_getRulesEx(col,UCOL_FULL_RULES,buffer,bufLen );
2111 int32_t bufLen; local
2114 bufLen = u_unescape(inSet, buffer, 512);
2115 uset_applyPattern(set, buffer, bufLen, 0, status);
2125 bufLen = u_unescape(outSet, buffer, 512);
2126 uset_applyPattern(set, buffer, bufLen, 0, status);
/external/icu4c/i18n/
H A Ducol_sit.cpp685 addSpecial(contContext *context, UChar *buffer, int32_t bufLen, argument
698 addSpecial(context, buffer, bufLen, newCE, leftIndex, rightIndex, status);
720 addSpecial(context, buffer, bufLen, newCE, leftIndex, rightIndex, status);
732 if(rightIndex == bufLen-1) {
740 addSpecial(context, buffer, bufLen, newCE, leftIndex, rightIndex+1, status);
/external/icu4c/test/perf/collationperf/
H A Dcollperf.cpp1378 int bufLen = 10000; local
1379 UChar *buf = (UChar *)malloc(bufLen * sizeof(UChar));
1392 if (i >= bufLen) {
1394 bufLen += 10000;
1395 buf = (UChar *)realloc(buf, bufLen);
/external/chromium/crypto/third_party/nss/
H A Dsha512.cc1302 dumpHash32(const unsigned char *buf, unsigned int bufLen) argument
1305 for (i = 0; i < bufLen; i += 4) {
1325 dumpHash64(const unsigned char *buf, unsigned int bufLen) argument
1328 for (i = 0; i < bufLen; i += 8) {

Completed in 691 milliseconds

12