nxt_string.c (704:1fcac04f0a15) nxt_string.c (963:d847762b684b)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 82 unchanged lines hidden (view full) ---

91 while (length != 0) {
92 c = *src++;
93 *dst++ = nxt_lowcase(c);
94 length--;
95 }
96}
97
98
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 82 unchanged lines hidden (view full) ---

91 while (length != 0) {
92 c = *src++;
93 *dst++ = nxt_lowcase(c);
94 length--;
95 }
96}
97
98
99void
100nxt_memcpy_upcase(u_char *dst, const u_char *src, size_t length)
101{
102 u_char c;
103
104 while (length != 0) {
105 c = *src++;
106 *dst++ = nxt_upcase(c);
107 length--;
108 }
109}
110
111
99u_char *
100nxt_cpystrn(u_char *dst, const u_char *src, size_t length)
101{
102 if (length == 0) {
103 return dst;
104 }
105
106 while (--length != 0) {

--- 334 unchanged lines hidden ---
112u_char *
113nxt_cpystrn(u_char *dst, const u_char *src, size_t length)
114{
115 if (length == 0) {
116 return dst;
117 }
118
119 while (--length != 0) {

--- 334 unchanged lines hidden ---