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

12

/external/jhead/
H A Dmain.c510 static int addKeyValueString(char** buf, int bufLen, const char* key, const char* value) { argument
519 if (newLen >= bufLen) {
521 bufLen = newLen + 5;
522 ALOGE("reallocing to %d", bufLen);
524 bufLen = newLen + 500;
526 *buf = realloc(*buf, bufLen);
532 snprintf(*buf + strlen(*buf), bufLen, "%s%s%s", key, valueLen, value);
537 return bufLen;
541 static int addKeyValueInt(char** buf, int bufLen, const char* key, int value) { argument
545 return addKeyValueString(buf, bufLen, ke
549 addKeyValueDouble(char** buf, int bufLen, const char* key, double value, const char* format) argument
557 addKeyValueRational(char** buf, int bufLen, const char* key, rat_t value) argument
577 int bufLen = 5; local
579 int bufLen = 1000; local
[all...]
/external/icu/icu4c/source/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.cpp400 int32_t bufLen = 0; local
411 buf = convertAndEscape(&buf, bufCapacity, &bufLen, src, srcLen,status);
413 trim(&buf,&bufLen);
415 write_utf8_file(out,UnicodeString(buf, bufLen, "UTF-8"));
492 int32_t bufLen = 0; local
511 buf = convertAndEscape(&buf, 0, &bufLen, trans, transLen, status);
513 printAttribute("translate", UnicodeString(buf, bufLen, "UTF-8"), bufLen);
620 int32_t bufLen = 0; local
632 buf = convertAndEscape(&buf, 0, &bufLen, re
656 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.c231 uint32_t bufLen = 0; local
243 bufLen = uCharsToChars(buf,length,src,srcLen,status);
253 if(bufLen+(tabCount*4) > columnCount ){
257 while(len < bufLen){
260 if (add < (bufLen-len)) {
284 if(len+add<bufLen){
289 T_FileStream_write(out,current,bufLen-len);
295 T_FileStream_write(out, buf,bufLen);
/external/icu/icu4c/source/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/icu/icu4c/source/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/icu/icu4c/source/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/icu/icu4c/source/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/icu/icu4c/source/common/
H A Dunifiedcache.h113 virtual char *writeDescription(char *buffer, int32_t bufLen) const {
115 uprv_strncpy(buffer, s, bufLen);
116 buffer[bufLen - 1] = 0;
166 virtual char *writeDescription(char *buffer, int32_t bufLen) const {
168 uprv_strncpy(buffer, s, bufLen);
169 buffer[bufLen - 1] = 0;
H A Duloc.cpp925 int32_t bufLen; local
942 bufLen = (int32_t)uprv_strlen(buffer);
947 if(bufferCapacity<bufLen) {
967 return bufLen;
970 needLen = bufLen+1+keywordNameLen+1+keywordValueLen;
975 startSearchHere=buffer+bufLen;
1038 return bufLen; /* no change in size */
1042 uprv_memmove(nextSeparator - delta, nextSeparator, bufLen-(nextSeparator-buffer));
1045 bufLen -= delta;
1046 buffer[bufLen]
[all...]
H A Dlocid.cpp1026 Locale::getKeywordValue(const char* keywordName, char *buffer, int32_t bufLen, UErrorCode &status) const argument
1028 return uloc_getKeywordValue(fullName, keywordName, buffer, bufLen, &status);
/external/icu/icu4c/source/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.cpp116 int32_t bufLen = (int32_t)uprv_strlen(buffer); local
124 uprv_strcpy(buffer+bufLen, ext);
129 uprv_strcpy(buffer+bufLen, "_SHORT");
134 uprv_strcpy(buffer+bufLen, "_STUB");
139 *(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.cpp1246 size_t bufLen = strlen(buffer); local
1254 strcpy(buffer+bufLen, ext);
1259 strcpy(buffer+bufLen, "_SHORT");
1264 strcpy(buffer+bufLen, "_STUB");
1269 *(buffer+bufLen) = 0;
/external/icu/icu4c/source/tools/toolutil/
H A Dtoolutil.h90 * @param bufLen the output buffer length
91 * @param status error code- may return U_BUFFER_OVERFLOW_ERROR if bufLen is too small.
92 * @return If successful, a pointer to the output buffer. If failure or bufLen is too small, NULL.
95 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status);
H A Dtoolutil.cpp126 findDirname(const char *path, char *buffer, int32_t bufLen, UErrorCode* status) { argument
150 if((resultLen+1) <= bufLen) {
/external/icu/icu4c/source/test/perf/DateFmtPerf/
H A DDateFmtPerf.h130 int32_t bufLen = len + 16; local
132 buf = new char[bufLen + 1];
133 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
216 int32_t bufLen = len + 16; local
218 buf = new char[bufLen + 1];
219 actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion
666 int32_t bufLen = str.extract(0, 0x7fffffff, stackBuffer, sizeof(stackBuffer), "UTF-8"); local
667 if(bufLen < sizeof(stackBuffer)) {
670 buf = new char[bufLen + 1];
671 bufLen
[all...]
/external/libcxxabi/src/Unwind/
H A Dlibunwind.cpp258 size_t bufLen, unw_word_t *offset) {
259 _LIBUNWIND_TRACE_API("unw_get_proc_name(cursor=%p, &buf=%p, bufLen=%lu)\n",
261 static_cast<unsigned long>(bufLen));
263 if (co->getFunctionName(buf, bufLen, offset))
257 unw_get_proc_name(unw_cursor_t *cursor, char *buf, size_t bufLen, unw_word_t *offset) argument
H A DAddressSpace.hpp143 bool findFunctionName(pint_t addr, char *buf, size_t bufLen,
444 size_t bufLen,
450 snprintf(buf, bufLen, "%s", dyldInfo.dli_sname);
483 bool findFunctionName(pint_t addr, char *buf, size_t bufLen,
540 size_t bufLen, unw_word_t *offset) {
443 findFunctionName(pint_t addr, char *buf, size_t bufLen, unw_word_t *offset) argument
539 findFunctionName(pint_t addr, char *buf, size_t bufLen, unw_word_t *offset) argument
/external/icu/icu4c/source/test/cintltst/
H A Didnatest.c460 int32_t bufLen = 0; local
465 bufLen = (int32_t)strlen(domainNames[i]);
466 bufLen = u_unescape(domainNames[i],buf, bufLen+1);
467 func(buf,bufLen,expected,MAX_DEST_SIZE, UIDNA_ALLOW_UNASSIGNED, &parseError,&status);
489 int32_t bufLen = 0; local
495 bufLen = (int32_t)strlen(domainNames[i]);
496 bufLen = u_unescape(domainNames[i],buf, bufLen+1);
497 func(buf,bufLen,expecte
[all...]
H A Dcapitst.c392 int32_t bufLen = 200000; local
395 tempLength = ucol_getRulesEx(col,UCOL_TAILORING_ONLY,buffer,bufLen );
400 tempLength=ucol_getRulesEx(col,UCOL_FULL_RULES,buffer,bufLen );
2118 int32_t bufLen; local
2121 bufLen = u_unescape(inSet, buffer, 512);
2122 uset_applyPattern(set, buffer, bufLen, 0, status);
2130 bufLen = uset_toPattern(set, buffer, UPRV_LENGTHOF(buffer), TRUE, status);
2131 log_info(" missing: %s\n", aescstrdup(buffer, bufLen));
2132 bufLen = uset_toPattern(ref, buffer, UPRV_LENGTHOF(buffer), TRUE, status);
2133 log_info(" total: size=%i %s\n", uset_getItemCount(ref), aescstrdup(buffer, bufLen));
[all...]
H A Dcrestst.c779 int32_t bufLen = (int32_t)strlen(testline)+10; local
780 char* buf = (char*) malloc(bufLen);
864 T_FileStream_readLine(stream,buf,bufLen);
872 retLen = T_FileStream_read(stream, buf, bufLen);
/external/icu/icu4c/source/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);

Completed in 466 milliseconds

12