Home
last modified time | relevance | path

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

/external/chromium/third_party/libjingle/source/talk/base/
Dstringencode.cc64 const char * source, size_t srclen, in escape() argument
71 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in escape()
86 const char * source, size_t srclen, in unescape() argument
93 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in unescape()
95 if ((ch == escape) && (srcpos < srclen)) { in unescape()
105 const char * source, size_t srclen, in encode() argument
112 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in encode()
130 const char * source, size_t srclen, in decode() argument
137 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in decode()
140 && (srcpos + 1 < srclen) in decode()
[all …]
Dstringencode.h51 size_t utf8_decode(const char* source, size_t srclen, unsigned long* value);
56 const char * source, size_t srclen,
60 const char * source, size_t srclen,
68 const char * source, size_t srclen,
72 const char * source, size_t srclen,
82 const char * source, size_t srclen);
85 const char * source, size_t srclen);
89 const char * source, size_t srclen);
92 const char * source, size_t srclen);
96 const char * source, size_t srclen);
[all …]
Dstringutils.cc88 const char* source, size_t srclen) { in asccpyn() argument
92 if (srclen == SIZE_UNKNOWN) { in asccpyn()
93 srclen = strlenn(source, buflen - 1); in asccpyn()
94 } else if (srclen >= buflen) { in asccpyn()
95 srclen = buflen - 1; in asccpyn()
99 for (size_t pos = 0; pos < srclen; ++pos) in asccpyn()
102 std::copy(source, source + srclen, buffer); in asccpyn()
103 buffer[srclen] = 0; in asccpyn()
104 return srclen; in asccpyn()
Dstringutils.h202 const CTYPE* source, size_t srclen = SIZE_UNKNOWN) {
206 if (srclen == SIZE_UNKNOWN) {
207 srclen = strlenn(source, buflen - 1);
208 } else if (srclen >= buflen) {
209 srclen = buflen - 1;
211 memcpy(buffer, source, srclen * sizeof(CTYPE));
212 buffer[srclen] = 0;
213 return srclen;
218 const CTYPE* source, size_t srclen = SIZE_UNKNOWN) {
223 return bufpos + strcpyn(buffer + bufpos, buflen - bufpos, source, srclen);
[all …]
/external/qemu/distrib/sdl-1.2.15/src/stdlib/
DSDL_iconv.c214 size_t srclen, dstlen; in SDL_iconv() local
226 srclen = (inbytesleft ? *inbytesleft : 0); in SDL_iconv()
235 size_t n = srclen / 2; in SDL_iconv()
257 size_t n = srclen / 4; in SDL_iconv()
303 while ( srclen > 0 ) { in SDL_iconv()
311 --srclen; in SDL_iconv()
319 --srclen; in SDL_iconv()
403 --srclen; in SDL_iconv()
404 if ( srclen < left ) { in SDL_iconv()
419 --srclen; in SDL_iconv()
[all …]
DSDL_string.c331 size_t srclen = SDL_strlen(src); in SDL_strlcpy() local
333 size_t len = SDL_min(srclen, maxlen-1); in SDL_strlcpy()
337 return srclen; in SDL_strlcpy()
345 size_t srclen = SDL_strlen(src); in SDL_strlcat() local
349 return dstlen+srclen; in SDL_strlcat()
/external/qemu/distrib/sdl-1.2.15/src/video/bwindow/
DSDL_BWin.h235 int32 state, srclen, dstlen; in Translate2Unicode() local
241 srclen = SDL_strlen(buf); in Translate2Unicode()
243 convert_from_utf8(B_UNICODE_CONVERSION, buf, &srclen, (char *)destbuf, &dstlen, &state); in Translate2Unicode()
/external/qemu/telephony/
Dsms.h51 extern int sms_address_from_str( SmsAddress address, const char* src, int srclen );
52 extern int sms_address_to_str( SmsAddress address, char* src, int srclen );
Dgsm.h43 extern void gsm_hex_from_bytes( char* hex, cbytes_t src, int srclen );
Dgsm.c210 gsm_hex_from_bytes( char* hex, cbytes_t src, int srclen ) in gsm_hex_from_bytes() argument
214 for (nn = 0; nn < srclen; nn++) { in gsm_hex_from_bytes()
Dsms.c285 sms_address_from_str( SmsAddress address, const char* src, int srclen ) in sms_address_from_str() argument
287 const char* end = src + srclen; in sms_address_from_str()
/external/bison/lib/
Dwchar.in.h310 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
314 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
319 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
324 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
403 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
407 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
412 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
417 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
/external/bison/linux-lib/
Dwchar.h622 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
626 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
631 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
636 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
715 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
719 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
724 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
729 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
/external/bison/darwin-lib/
Dwchar.h622 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
626 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
631 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
636 (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
715 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
719 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
724 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
729 (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
/external/qemu/
Dloader.c404 size_t srclen) in gunzip() argument
427 if (i >= srclen) { in gunzip()
441 s.avail_in = srclen - i; in gunzip()
/external/qemu/proxy/
Dproxy_int.h171 proxy_base64_encode( const char* src, int srclen,
Dproxy_common.c462 proxy_base64_encode( const char* src, int srclen, in proxy_base64_encode() argument
466 const char* srcend = src + srclen; in proxy_base64_encode()
/external/icu4c/test/cintltst/
Dcitertst.c368 int32_t srclen; in TestNormalization() local
380 srclen = u_unescape(testdata[0], source, 10); in TestNormalization()
381 iter = ucol_openElements(coll, source, srclen, &status); in TestNormalization()
385 srclen = u_unescape(testdata[1], source, 10); in TestNormalization()
386 iter = ucol_openElements(coll, source, srclen, &status); in TestNormalization()
391 srclen = u_unescape(testdata[count], source, 10); in TestNormalization()
392 iter = ucol_openElements(coll, source, srclen, &status); in TestNormalization()
/external/llvm/test/CodeGen/X86/
D2008-07-07-DanglingDeadInsts.ll96 …l, i32* %offset, float* %dest, i32 %dststep, float* %source, i32 %srcstep, i32 %srclen) nounwind {
/external/valgrind/main/memcheck/
Dmc_replace_strmem.c111 Bool is_overlap ( void* dst, const void* src, SizeT dstlen, SizeT srclen ) in is_overlap() argument
115 if (dstlen == 0 || srclen == 0) in is_overlap()
120 hiS = loS + srclen - 1; in is_overlap()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors.cc554 uptr srclen = internal_strlen(src); in TSAN_INTERCEPTOR() local
555 MemoryAccessRange(thr, pc, (uptr)dst, srclen + 1, true); in TSAN_INTERCEPTOR()
556 MemoryAccessRange(thr, pc, (uptr)src, srclen + 1, false); in TSAN_INTERCEPTOR()
562 uptr srclen = internal_strnlen(src, n); in TSAN_INTERCEPTOR() local
564 MemoryAccessRange(thr, pc, (uptr)src, min(srclen + 1, n), false); in TSAN_INTERCEPTOR()
/external/doclava/src/com/google/doclava/
DDoclava.java1242 int srclen = src.length; in linkTarget() local
1246 while (same < (srclen - 1) && same < (tgtlen - 1) && (src[same].equals(tgt[same]))) { in linkTarget()
1252 int up = srclen - same - 1; in linkTarget()
/external/ping6/
Dping6.c228 socklen_t srclen; variable
554 srclen = res->ai_addrlen; in main()
670 bind(s, (struct sockaddr *)&src, srclen) != 0) { in main()
/external/libmtp/src/
Dptp-pack.c109 size_t nconv, srclen, destlen; in ptp_unpack_string() local
124 srclen = length * sizeof(string[0]); in ptp_unpack_string()
129 nconv = iconv(params->cd_ucs2_to_locale, &src, &srclen, in ptp_unpack_string()
/external/mdnsresponder/mDNSShared/
Ddnsextd.c424 unsigned int srclen; in RecvPacket() local
462 srclen = sizeof(pkt->src); in RecvPacket()
464 …if ( getpeername( fd, ( struct sockaddr* ) &pkt->src, &srclen ) || ( srclen != sizeof( pkt->src ) … in RecvPacket()