comparison src/core/ngx_hash.h @ 2136:7a7c9e9024dd

ngx_hash_strlow()
author Igor Sysoev <igor@sysoev.ru>
date Mon, 04 Aug 2008 10:18:36 +0000
parents 8ef04207c84f
children 4c70bbdfd076
comparison
equal deleted inserted replaced
2135:8c6521eedf84 2136:7a7c9e9024dd
108 ngx_uint_t nelts); 108 ngx_uint_t nelts);
109 109
110 #define ngx_hash(key, c) ((ngx_uint_t) key * 31 + c) 110 #define ngx_hash(key, c) ((ngx_uint_t) key * 31 + c)
111 ngx_uint_t ngx_hash_key(u_char *data, size_t len); 111 ngx_uint_t ngx_hash_key(u_char *data, size_t len);
112 ngx_uint_t ngx_hash_key_lc(u_char *data, size_t len); 112 ngx_uint_t ngx_hash_key_lc(u_char *data, size_t len);
113 ngx_uint_t ngx_hash_strlow(u_char *dst, u_char *src, size_t n);
114
113 115
114 ngx_int_t ngx_hash_keys_array_init(ngx_hash_keys_arrays_t *ha, ngx_uint_t type); 116 ngx_int_t ngx_hash_keys_array_init(ngx_hash_keys_arrays_t *ha, ngx_uint_t type);
115 ngx_int_t ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key, 117 ngx_int_t ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key,
116 void *value, ngx_uint_t flags); 118 void *value, ngx_uint_t flags);
117 119