comparison src/core/ngx_string.h @ 2135:8c6521eedf84

ngx_strlow()
author Igor Sysoev <igor@sysoev.ru>
date Mon, 04 Aug 2008 10:07:00 +0000
parents 8e4b9d2acde8
children 49a269b67213
comparison
equal deleted inserted replaced
2134:13652cba8633 2135:8c6521eedf84
40 #define ngx_null_string { 0, NULL } 40 #define ngx_null_string { 0, NULL }
41 41
42 42
43 #define ngx_tolower(c) (u_char) ((c >= 'A' && c <= 'Z') ? (c | 0x20) : c) 43 #define ngx_tolower(c) (u_char) ((c >= 'A' && c <= 'Z') ? (c | 0x20) : c)
44 #define ngx_toupper(c) (u_char) ((c >= 'a' && c <= 'z') ? (c & ~0x20) : c) 44 #define ngx_toupper(c) (u_char) ((c >= 'a' && c <= 'z') ? (c & ~0x20) : c)
45
46 void ngx_strlow(u_char *dst, u_char *src, size_t n);
45 47
46 48
47 #define ngx_strncmp(s1, s2, n) strncmp((const char *) s1, (const char *) s2, n) 49 #define ngx_strncmp(s1, s2, n) strncmp((const char *) s1, (const char *) s2, n)
48 50
49 51