Lines Matching refs:src

34 nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst, const nxt_str_t *src)  in nxt_str_dup()  argument
40 dst = nxt_mp_get(mp, sizeof(nxt_str_t) + src->length); in nxt_str_dup()
50 dst->start = nxt_mp_nget(mp, src->length); in nxt_str_dup()
56 nxt_memcpy(dst->start, src->start, src->length); in nxt_str_dup()
57 dst->length = src->length; in nxt_str_dup()
71 nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src) in nxt_str_cstrz() argument
75 dst = nxt_mp_alloc(mp, src->length + 1); in nxt_str_cstrz()
78 p = nxt_cpymem(dst, src->start, src->length); in nxt_str_cstrz()
87 nxt_memcpy_lowcase(u_char *dst, const u_char *src, size_t length) in nxt_memcpy_lowcase() argument
92 c = *src++; in nxt_memcpy_lowcase()
100 nxt_memcpy_upcase(u_char *dst, const u_char *src, size_t length) in nxt_memcpy_upcase() argument
105 c = *src++; in nxt_memcpy_upcase()
113 nxt_cpystr(u_char *dst, const u_char *src) in nxt_cpystr() argument
116 *dst = *src; in nxt_cpystr()
123 src++; in nxt_cpystr()
131 nxt_cpystrn(u_char *dst, const u_char *src, size_t length) in nxt_cpystrn() argument
138 *dst = *src; in nxt_cpystrn()
145 src++; in nxt_cpystrn()
520 nxt_decode_uri(u_char *dst, u_char *src, size_t length) in nxt_decode_uri() argument
527 end = src + length; in nxt_decode_uri()
529 while (src < end) { in nxt_decode_uri()
530 ch = *src++; in nxt_decode_uri()
533 if (nxt_slow_path(end - src < 2)) { in nxt_decode_uri()
537 d0 = nxt_hex2int[*src++]; in nxt_decode_uri()
538 d1 = nxt_hex2int[*src++]; in nxt_decode_uri()
555 nxt_decode_uri_plus(u_char *dst, u_char *src, size_t length) in nxt_decode_uri_plus() argument
562 end = src + length; in nxt_decode_uri_plus()
564 while (src < end) { in nxt_decode_uri_plus()
565 ch = *src++; in nxt_decode_uri_plus()
569 if (nxt_slow_path(end - src < 2)) { in nxt_decode_uri_plus()
573 d0 = nxt_hex2int[*src++]; in nxt_decode_uri_plus()
574 d1 = nxt_hex2int[*src++]; in nxt_decode_uri_plus()
596 nxt_encode_uri(u_char *dst, u_char *src, size_t length) in nxt_encode_uri() argument
603 end = src + length; in nxt_encode_uri()
611 while (src < end) { in nxt_encode_uri()
613 if (nxt_uri_escape[*src >> 5] & (1U << (*src & 0x1f))) { in nxt_encode_uri()
617 src++; in nxt_encode_uri()
623 while (src < end) { in nxt_encode_uri()
625 if (nxt_uri_escape[*src >> 5] & (1U << (*src & 0x1f))) { in nxt_encode_uri()
627 *dst++ = hex[*src >> 4]; in nxt_encode_uri()
628 *dst++ = hex[*src & 0xf]; in nxt_encode_uri()
631 *dst++ = *src; in nxt_encode_uri()
634 src++; in nxt_encode_uri()
642 nxt_encode_complex_uri(u_char *dst, u_char *src, size_t length) in nxt_encode_complex_uri() argument
651 end = src + length; in nxt_encode_complex_uri()
659 while (src < end) { in nxt_encode_complex_uri()
660 ch = *src++; in nxt_encode_complex_uri()
680 while (src < end) { in nxt_encode_complex_uri()
681 ch = *src++; in nxt_encode_complex_uri()
706 nxt_is_complex_uri_encoded(u_char *src, size_t length) in nxt_is_complex_uri_encoded() argument
713 for (end = src + length; src < end; src++) { in nxt_is_complex_uri_encoded()
714 ch = *src; in nxt_is_complex_uri_encoded()
718 if (end - src < 2) { in nxt_is_complex_uri_encoded()
722 d0 = nxt_hex2int[*++src]; in nxt_is_complex_uri_encoded()
723 d1 = nxt_hex2int[*++src]; in nxt_is_complex_uri_encoded()
751 nxt_base64_decode(u_char *dst, u_char *src, size_t length) in nxt_base64_decode() argument
777 end = src + length; in nxt_base64_decode()
785 while (src < end) { in nxt_base64_decode()
786 if (decode[*src] != 77) { in nxt_base64_decode()
787 src++; in nxt_base64_decode()
792 pad = end - src; in nxt_base64_decode()
794 if ((pad == 1 || (pad == 2 && src[1] == '=')) && src[0] == '=') in nxt_base64_decode()
818 while (src < end) { in nxt_base64_decode()
819 v1 = decode[src[0]]; in nxt_base64_decode()
820 v2 = decode[src[1]]; in nxt_base64_decode()
821 v3 = decode[src[2]]; in nxt_base64_decode()
822 v4 = decode[src[3]]; in nxt_base64_decode()
828 src += 4; in nxt_base64_decode()
832 v1 = decode[src[0]]; in nxt_base64_decode()
833 v2 = decode[src[1]]; in nxt_base64_decode()
838 v3 = decode[src[2]]; in nxt_base64_decode()