/external/webrtc/webrtc/base/ |
D | stringencode.cc | 27 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 …]
|
D | stringencode.h | 31 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 …]
|
D | stringutils.cc | 71 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()
|
D | stringutils.h | 182 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/fio/oslib/ |
D | strlcat.c | 7 size_t srclen; in strlcat() local 16 srclen = strlen(src); in strlcat() 17 if (srclen > size) in strlcat() 18 srclen = size; in strlcat() 20 memcpy(dst + dstlen, src, srclen); in strlcat() 21 dst[dstlen + srclen] = '\0'; in strlcat() 23 return dstlen + srclen; in strlcat()
|
/external/libvncserver/client_examples/ |
D | scrap.c | 82 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 …]
|
D | scrap.h | 12 extern void put_scrap(int type, int srclen, const char *src);
|
/external/libcups/cups/ |
D | string.c | 689 size_t srclen; /* Length of source string */ in _cups_strlcat() local 708 srclen = strlen(src); in _cups_strlcat() 714 if (srclen > size) in _cups_strlcat() 715 srclen = size; in _cups_strlcat() 717 memmove(dst + dstlen, src, srclen); in _cups_strlcat() 718 dst[dstlen + srclen] = '\0'; in _cups_strlcat() 720 return (dstlen + srclen); in _cups_strlcat() 735 size_t srclen; /* Length of source string */ in _cups_strlcpy() local 744 srclen = strlen(src); in _cups_strlcpy() 750 if (srclen > size) in _cups_strlcpy() [all …]
|
D | transcode.c | 82 size_t srclen, /* Length of source string */ in cupsCharsetToUTF8() local 169 srclen = strlen(src); in cupsCharsetToUTF8() 172 iconv(map_to_utf8, (char **)&src, &srclen, &altdestptr, &outBytesLeft); in cupsCharsetToUTF8() 206 size_t srclen, /* Length of source string */ in cupsUTF8ToCharset() local 298 srclen = strlen((char *)src); in cupsUTF8ToCharset() 301 iconv(map_from_utf8, &altsrc, &srclen, &destptr, &outBytesLeft); in cupsUTF8ToCharset()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_libc.cc | 179 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/curl/lib/ |
D | base64.c | 103 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()
|
D | curl_ntlm_core.c | 528 size_t srclen) in ascii_to_unicode_le() argument 531 for(i = 0; i < srclen; i++) { in ascii_to_unicode_le() 540 const char *src, size_t srclen) in ascii_uppercase_to_unicode_le() argument 543 for(i = 0; i < srclen; i++) { in ascii_uppercase_to_unicode_le()
|
/external/libnl/lib/ |
D | attr.c | 380 size_t srclen = nla_len(nla); in nla_strlcpy() local 383 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strlcpy() 384 srclen--; in nla_strlcpy() 387 size_t len = (srclen >= dstsize) ? dstsize - 1 : srclen; in nla_strlcpy() 393 return srclen; in nla_strlcpy()
|
/external/boringssl/src/crypto/x509/ |
D | x509_vpm.c | 334 const char *src, size_t srclen) in int_x509_param_set1() argument 338 if (srclen == 0) { in int_x509_param_set1() 340 srclen = strlen(src); in int_x509_param_set1() 342 tmp = BUF_memdup(src, srclen); in int_x509_param_set1() 347 srclen = 0; in int_x509_param_set1() 353 *pdestlen = srclen; in int_x509_param_set1()
|
/external/compiler-rt/lib/esan/ |
D | esan_interceptors.cpp | 246 uptr srclen = internal_strlen(src); in INTERCEPTOR() local 247 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, srclen + 1); in INTERCEPTOR() 248 COMMON_INTERCEPTOR_READ_RANGE(ctx, src, srclen + 1); in INTERCEPTOR() 255 uptr srclen = internal_strnlen(src, n); in INTERCEPTOR() local 256 uptr copied_size = srclen + 1 > n ? n : srclen + 1; in INTERCEPTOR()
|
/external/curl/packages/OS400/ |
D | os400sys.c | 1203 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/ |
D | citertst.c | 366 int32_t srclen; in TestNormalization() local 378 srclen = u_unescape(testdata[0], source, 10); in TestNormalization() 379 iter = ucol_openElements(coll, source, srclen, &status); in TestNormalization() 383 srclen = u_unescape(testdata[1], source, 10); in TestNormalization() 384 iter = ucol_openElements(coll, source, srclen, &status); in TestNormalization() 389 srclen = u_unescape(testdata[count], source, 10); in TestNormalization() 390 iter = ucol_openElements(coll, source, srclen, &status); in TestNormalization()
|
/external/pdfium/core/fpdfapi/parser/ |
D | fpdf_parser_decode.cpp | 517 int srclen = src.GetLength(); in PDF_EncodeString() local 520 for (int i = 0; i < srclen; ++i) { in PDF_EncodeString() 530 for (int i = 0; i < srclen; ++i) { in PDF_EncodeString()
|
/external/python/cpython2/Mac/Modules/res/ |
D | _Resmodule.c | 582 int srclen = 0; in ResObj_tp_init() local 592 if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "|s#", kw, &srcdata, &srclen)) return -1; in ResObj_tp_init() 593 if ((itself = NewHandle(srclen)) == NULL) in ResObj_tp_init() 599 if (srclen && srcdata) in ResObj_tp_init() 602 memcpy(*itself, srcdata, srclen); in ResObj_tp_init()
|
/external/iproute2/lib/ |
D | utils.c | 1285 size_t srclen = strlen(src); in strlcpy() local 1288 size_t minlen = min(srclen, size - 1); in strlcpy() 1293 return srclen; in strlcpy()
|
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | mpdecimal.c | 7868 _mpd_importsize(size_t srclen, uint32_t base) in _mpd_importsize() argument 7872 assert(srclen > 0); in _mpd_importsize() 7876 if (srclen > (1ULL<<53)) { in _mpd_importsize() 7881 x = (double)srclen * (log10(base)/MPD_RDIGITS); in _mpd_importsize() 8290 const uint16_t *srcdata, size_t srclen, in mpd_qimport_u16() argument 8298 assert(srclen > 0); in mpd_qimport_u16() 8301 rlen = _mpd_importsize(srclen, srcbase); in mpd_qimport_u16() 8307 usrc = mpd_alloc((mpd_size_t)srclen, sizeof *usrc); in mpd_qimport_u16() 8312 for (n = 0; n < srclen; n++) { in mpd_qimport_u16() 8320 n = _coeff_from_u16(result, rlen, usrc, srclen, srcbase, status); in mpd_qimport_u16() [all …]
|
D | mpdecimal.h | 566 void mpd_qimport_u16(mpd_t *result, const uint16_t *srcdata, size_t srclen, 569 void mpd_qimport_u32(mpd_t *result, const uint32_t *srcdata, size_t srclen, 583 void mpd_import_u16(mpd_t *result, const uint16_t *srcdata, size_t srclen, uint8_t srcsign, uint32_… 584 void mpd_import_u32(mpd_t *result, const uint32_t *srcdata, size_t srclen, uint8_t srcsign, uint32_…
|
/external/llvm/test/CodeGen/X86/ |
D | 2008-07-07-DanglingDeadInsts.ll | 96 …l, i32* %offset, float* %dest, i32 %dststep, float* %source, i32 %srcstep, i32 %srclen) nounwind {
|
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/ |
D | 2008-07-07-DanglingDeadInsts.ll | 96 …l, i32* %offset, float* %dest, i32 %dststep, float* %source, i32 %srcstep, i32 %srclen) nounwind {
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_interceptors.cc | 656 uptr srclen = internal_strlen(src); in TSAN_INTERCEPTOR() local 657 MemoryAccessRange(thr, pc, (uptr)dst, srclen + 1, true); in TSAN_INTERCEPTOR() 658 MemoryAccessRange(thr, pc, (uptr)src, srclen + 1, false); in TSAN_INTERCEPTOR() 664 uptr srclen = internal_strnlen(src, n); in TSAN_INTERCEPTOR() local 666 MemoryAccessRange(thr, pc, (uptr)src, min(srclen + 1, n), false); in TSAN_INTERCEPTOR()
|