comparison src/core/ngx_string.h @ 1726:d2a12e9a34e8 stable-0.5

r1594 merge: unescape SSI include
author Igor Sysoev <igor@sysoev.ru>
date Wed, 12 Dec 2007 20:56:13 +0000
parents 6b81bbc36eaf
children 89a47f19b9ec
comparison
equal deleted inserted replaced
1725:0a174d921f1e 1726:d2a12e9a34e8
153 uint32_t ngx_utf_decode(u_char **p, size_t n); 153 uint32_t ngx_utf_decode(u_char **p, size_t n);
154 size_t ngx_utf_length(u_char *p, size_t n); 154 size_t ngx_utf_length(u_char *p, size_t n);
155 u_char *ngx_utf_cpystrn(u_char *dst, u_char *src, size_t n); 155 u_char *ngx_utf_cpystrn(u_char *dst, u_char *src, size_t n);
156 156
157 157
158 #define NGX_ESCAPE_URI 0 158 #define NGX_ESCAPE_URI 0
159 #define NGX_ESCAPE_ARGS 1 159 #define NGX_ESCAPE_ARGS 1
160 #define NGX_ESCAPE_HTML 2 160 #define NGX_ESCAPE_HTML 2
161 #define NGX_ESCAPE_REFRESH 3 161 #define NGX_ESCAPE_REFRESH 3
162 #define NGX_ESCAPE_MEMCACHED 4 162 #define NGX_ESCAPE_MEMCACHED 4
163 #define NGX_ESCAPE_MAIL_AUTH 5 163 #define NGX_ESCAPE_MAIL_AUTH 5
164 164
165 #define NGX_UNESCAPE_URI 1 165 #define NGX_UNESCAPE_URI 1
166 #define NGX_UNESCAPE_REDIRECT 2
166 167
167 uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size, 168 uintptr_t ngx_escape_uri(u_char *dst, u_char *src, size_t size,
168 ngx_uint_t type); 169 ngx_uint_t type);
169 void ngx_unescape_uri(u_char **dst, u_char **src, size_t size, ngx_uint_t type); 170 void ngx_unescape_uri(u_char **dst, u_char **src, size_t size, ngx_uint_t type);
170 uintptr_t ngx_escape_html(u_char *dst, u_char *src, size_t size); 171 uintptr_t ngx_escape_html(u_char *dst, u_char *src, size_t size);