nxt_string.c (1183:6008abf06746) nxt_string.c (1234:e56683f325ab)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

183 }
184 }
185
186 return 0;
187}
188
189
190nxt_int_t
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

183 }
184 }
185
186 return 0;
187}
188
189
190nxt_int_t
191nxt_memcasecmp(const u_char *s1, const u_char *s2, size_t length)
191nxt_memcasecmp(const void *p1, const void *p2, size_t length)
192{
192{
193 u_char c1, c2;
194 nxt_int_t n;
193 u_char c1, c2;
194 nxt_int_t n;
195 const u_char *s1, *s2;
195
196
197 s1 = p1;
198 s2 = p2;
199
196 while (length-- != 0) {
197 c1 = *s1++;
198 c2 = *s2++;
199
200 c1 = nxt_lowcase(c1);
201 c2 = nxt_lowcase(c2);
202
203 n = c1 - c2;

--- 372 unchanged lines hidden ---
200 while (length-- != 0) {
201 c1 = *s1++;
202 c2 = *s2++;
203
204 c1 = nxt_lowcase(c1);
205 c2 = nxt_lowcase(c2);
206
207 n = c1 - c2;

--- 372 unchanged lines hidden ---