Home
last modified time | relevance | path

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

12

/external/webrtc/webrtc/base/
Dstringencode.cc27 const char * source, size_t srclen, in escape() argument
34 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in escape()
49 const char * source, size_t srclen, in unescape() argument
56 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in unescape()
58 if ((ch == escape) && (srcpos < srclen)) { in unescape()
68 const char * source, size_t srclen, in encode() argument
75 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in encode()
93 const char * source, size_t srclen, in decode() argument
100 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in decode()
103 && (srcpos + 1 < srclen) in decode()
[all …]
Dstringencode.h31 size_t utf8_decode(const char* source, size_t srclen, unsigned long* value);
36 const char * source, size_t srclen,
40 const char * source, size_t srclen,
48 const char * source, size_t srclen,
52 const char * source, size_t srclen,
62 const char * source, size_t srclen);
65 const char * source, size_t srclen);
69 const char * source, size_t srclen);
72 const char * source, size_t srclen);
76 const char * source, size_t srclen);
[all …]
Dstringutils.cc71 const char* source, size_t srclen) { in asccpyn() argument
75 if (srclen == SIZE_UNKNOWN) { in asccpyn()
76 srclen = strlenn(source, buflen - 1); in asccpyn()
77 } else if (srclen >= buflen) { in asccpyn()
78 srclen = buflen - 1; in asccpyn()
82 for (size_t pos = 0; pos < srclen; ++pos) in asccpyn()
85 std::copy(source, source + srclen, buffer); in asccpyn()
86 buffer[srclen] = 0; in asccpyn()
87 return srclen; in asccpyn()
Dstringutils.h182 const CTYPE* source, size_t srclen = SIZE_UNKNOWN) {
186 if (srclen == SIZE_UNKNOWN) {
187 srclen = strlenn(source, buflen - 1);
188 } else if (srclen >= buflen) {
189 srclen = buflen - 1;
191 memcpy(buffer, source, srclen * sizeof(CTYPE));
192 buffer[srclen] = 0;
193 return srclen;
198 const CTYPE* source, size_t srclen = SIZE_UNKNOWN) {
203 return bufpos + strcpyn(buffer + bufpos, buflen - bufpos, source, srclen);
[all …]
/external/libvncserver/client_examples/
Dscrap.c82 static int convert_data(int type, char *dst, const char *src, int srclen) in convert_data() argument
90 while (--srclen >= 0) { in convert_data()
116 while (--srclen >= 0) { in convert_data()
138 *(int *)dst = srclen; in convert_data()
140 memcpy(dst, src, srclen); in convert_data()
142 dstlen = sizeof(int)+srclen; in convert_data()
149 static int convert_scrap(int type, char *dst, char *src, int srclen) in convert_scrap() argument
157 if (srclen == 0) in convert_scrap()
158 srclen = strlen(src); in convert_scrap()
160 while (--srclen >= 0) { in convert_scrap()
[all …]
Dscrap.h12 extern void put_scrap(int type, int srclen, const char *src);
/external/curl/lib/
Dbase64.c103 size_t srclen = 0; in Curl_base64_decode() local
114 srclen = strlen(src); in Curl_base64_decode()
117 if(!srclen || srclen % 4) in Curl_base64_decode()
132 if(length + padding != srclen) in Curl_base64_decode()
136 numQuantums = srclen / 4; in Curl_base64_decode()
Dcurl_ntlm_core.c486 size_t srclen) in ascii_to_unicode_le() argument
489 for(i = 0; i < srclen; i++) { in ascii_to_unicode_le()
498 const char *src, size_t srclen) in ascii_uppercase_to_unicode_le() argument
501 for(i = 0; i < srclen; i++) { in ascii_uppercase_to_unicode_le()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_libc.cc179 const uptr srclen = internal_strlen(src); in internal_strlcat() local
181 if (dstlen == maxlen) return maxlen + srclen; in internal_strlcat()
182 if (srclen < maxlen - dstlen) { in internal_strlcat()
183 internal_memmove(dst + dstlen, src, srclen + 1); in internal_strlcat()
188 return dstlen + srclen; in internal_strlcat()
201 const uptr srclen = internal_strlen(src); in internal_strlcpy() local
202 if (srclen < maxlen) { in internal_strlcpy()
203 internal_memmove(dst, src, srclen + 1); in internal_strlcpy()
208 return srclen; in internal_strlcpy()
/external/libnl/lib/
Dattr.c722 size_t srclen = nla_len(nla); in nla_strlcpy() local
725 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strlcpy()
726 srclen--; in nla_strlcpy()
729 size_t len = (srclen >= dstsize) ? dstsize - 1 : srclen; in nla_strlcpy()
735 return srclen; in nla_strlcpy()
/external/pdfium/core/src/fxcrt/
Dfx_basic_gcc.cpp122 int srclen = FXSYS_strlen(filename); in FXSYS_GetFullPathName() local
123 if (!buf || (int)buflen < srclen + 1) { in FXSYS_GetFullPathName()
124 return srclen + 1; in FXSYS_GetFullPathName()
127 return srclen; in FXSYS_GetFullPathName()
/external/boringssl/src/crypto/x509/
Dx509_vpm.c341 const char *src, size_t srclen) in int_x509_param_set1() argument
346 if (srclen == 0) in int_x509_param_set1()
349 srclen = strlen(src); in int_x509_param_set1()
352 tmp = BUF_memdup(src, srclen); in int_x509_param_set1()
359 srclen = 0; in int_x509_param_set1()
365 *pdestlen = srclen; in int_x509_param_set1()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/lang/
DSystem.java59 int srclen = getArrayLength(src); in arraycopy() local
61 if (srcOfs < 0 || destOfs < 0 || len < 0 || srcOfs + len > srclen in arraycopy()
/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/curl/packages/OS400/
Dos400sys.c1203 const struct sockaddr * srcaddr, int srclen) in convert_sockaddr() argument
1213 if(!srcaddr || srclen < offsetof(struct sockaddr, sa_family) + in convert_sockaddr()
1214 sizeof srcaddr->sa_family || srclen > sizeof *dstaddr) { in convert_sockaddr()
1219 memcpy((char *) dstaddr, (char *) srcaddr, srclen); in convert_sockaddr()
1227 srclen -= offsetof(struct sockaddr_un, sun_path); in convert_sockaddr()
1228 i = QadrtConvertA2E(dstu->sun_path, srcu->sun_path, dstsize - 1, srclen); in convert_sockaddr()
1231 srclen = i; in convert_sockaddr()
1234 return srclen; in convert_sockaddr()
/external/icu/icu4c/source/test/cintltst/
Dcitertst.c363 int32_t srclen; in TestNormalization() local
375 srclen = u_unescape(testdata[0], source, 10); in TestNormalization()
376 iter = ucol_openElements(coll, source, srclen, &status); in TestNormalization()
380 srclen = u_unescape(testdata[1], source, 10); in TestNormalization()
381 iter = ucol_openElements(coll, source, srclen, &status); in TestNormalization()
386 srclen = u_unescape(testdata[count], source, 10); in TestNormalization()
387 iter = ucol_openElements(coll, source, srclen, &status); in TestNormalization()
/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_decode.cpp514 int srclen = src.GetLength(); in PDF_EncodeString() local
517 for (int i = 0; i < srclen; i++) { in PDF_EncodeString()
525 for (int i = 0; i < srclen; i++) { in PDF_EncodeString()
/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/shared/
Dvg_replace_strmem.c124 Bool is_overlap ( void* dst, const void* src, SizeT dstlen, SizeT srclen ) in is_overlap() argument
128 if (dstlen == 0 || srclen == 0) in is_overlap()
133 hiS = loS + srclen - 1; in is_overlap()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors.cc723 uptr srclen = internal_strlen(src); in TSAN_INTERCEPTOR() local
724 MemoryAccessRange(thr, pc, (uptr)dst, srclen + 1, true); in TSAN_INTERCEPTOR()
725 MemoryAccessRange(thr, pc, (uptr)src, srclen + 1, false); in TSAN_INTERCEPTOR()
731 uptr srclen = internal_strnlen(src, n); in TSAN_INTERCEPTOR() local
733 MemoryAccessRange(thr, pc, (uptr)src, min(srclen + 1, n), false); in TSAN_INTERCEPTOR()
/external/doclava/src/com/google/doclava/
DDoclava.java1419 int srclen = src.length; in linkTarget() local
1423 while (same < (srclen - 1) && same < (tgtlen - 1) && (src[same].equals(tgt[same]))) { in linkTarget()
1429 int up = srclen - same - 1; in linkTarget()
/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()

12