Lines Matching refs:dst

34 nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst, const nxt_str_t *src)  in nxt_str_dup()  argument
38 if (dst == NULL) { in nxt_str_dup()
40 dst = nxt_mp_get(mp, sizeof(nxt_str_t) + src->length); in nxt_str_dup()
41 if (nxt_slow_path(dst == NULL)) { in nxt_str_dup()
45 p = (u_char *) dst; in nxt_str_dup()
47 dst->start = p; in nxt_str_dup()
50 dst->start = nxt_mp_nget(mp, src->length); in nxt_str_dup()
51 if (nxt_slow_path(dst->start == NULL)) { 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()
59 return dst; in nxt_str_dup()
73 char *p, *dst; in nxt_str_cstrz() local
75 dst = nxt_mp_alloc(mp, src->length + 1); in nxt_str_cstrz()
77 if (nxt_fast_path(dst != NULL)) { in nxt_str_cstrz()
78 p = nxt_cpymem(dst, src->start, src->length); in nxt_str_cstrz()
82 return dst; in nxt_str_cstrz()
87 nxt_memcpy_lowcase(u_char *dst, const u_char *src, size_t length) in nxt_memcpy_lowcase() argument
93 *dst++ = nxt_lowcase(c); in nxt_memcpy_lowcase()
100 nxt_memcpy_upcase(u_char *dst, const u_char *src, size_t length) in nxt_memcpy_upcase() argument
106 *dst++ = nxt_upcase(c); in nxt_memcpy_upcase()
113 nxt_cpystr(u_char *dst, const u_char *src) in nxt_cpystr() argument
116 *dst = *src; in nxt_cpystr()
118 if (*dst == '\0') { in nxt_cpystr()
122 dst++; in nxt_cpystr()
126 return dst; in nxt_cpystr()
131 nxt_cpystrn(u_char *dst, const u_char *src, size_t length) in nxt_cpystrn() argument
134 return dst; in nxt_cpystrn()
138 *dst = *src; in nxt_cpystrn()
140 if (*dst == '\0') { in nxt_cpystrn()
141 return dst; in nxt_cpystrn()
144 dst++; in nxt_cpystrn()
148 *dst = '\0'; in nxt_cpystrn()
150 return dst; in nxt_cpystrn()
520 nxt_decode_uri(u_char *dst, u_char *src, size_t length) in nxt_decode_uri() argument
547 *dst++ = ch; in nxt_decode_uri()
550 return dst; in nxt_decode_uri()
555 nxt_decode_uri_plus(u_char *dst, u_char *src, size_t length) in nxt_decode_uri_plus() argument
588 *dst++ = ch; in nxt_decode_uri_plus()
591 return dst; in nxt_decode_uri_plus()
596 nxt_encode_uri(u_char *dst, u_char *src, size_t length) in nxt_encode_uri() argument
605 if (dst == NULL) { in nxt_encode_uri()
626 *dst++ = '%'; 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()
637 return (uintptr_t) dst; in nxt_encode_uri()
642 nxt_encode_complex_uri(u_char *dst, u_char *src, size_t length) in nxt_encode_complex_uri() argument
653 if (dst == NULL) { in nxt_encode_complex_uri()
691 *dst++ = '%'; in nxt_encode_complex_uri()
692 *dst++ = hex[ch >> 4]; in nxt_encode_complex_uri()
693 *dst++ = hex[ch & 0xf]; in nxt_encode_complex_uri()
698 *dst++ = ch; in nxt_encode_complex_uri()
701 return (uintptr_t) dst; in nxt_encode_complex_uri()
751 nxt_base64_decode(u_char *dst, u_char *src, size_t length) in nxt_base64_decode() argument
780 if (dst == NULL) { in nxt_base64_decode()
816 p = dst; in nxt_base64_decode()
843 return (p - dst); in nxt_base64_decode()