30 const char *
src, *target;
37 src =
"Hello World &;`'\"|*?~<>^()[]{}$\\";
38 target =
"Hello World \\&\\;\\`\\'\\\"\\|\\*\\?\\~\\<\\>\\^\\(\\)\\[\\]\\{\\}\\$\\\\";
49#if !(defined(OS2) || defined(WIN32))
52 src =
"Hello World &;`'\"|*?~<>^()[]{}$\\\n";
53 target =
"Hello World \\&\\;\\`\\'\\\"\\|\\*\\?\\~\\<\\>\\^\\(\\)\\[\\]\\{\\}\\$\\\\\\\n";
77 src =
"Hello%20World";
78 target =
"Hello World";
87 target =
"Hello World";
95 src =
"Hello%20World";
96 target =
"Hello%20World";
108 src =
"$-_.+!*'(),:@&=/~Hello World";
109 target =
"$-_.+!*'(),:@&=%2f~Hello%20World";
121 src =
"$-_.+!*'(),:@&=/~Hello World";
122 target =
"./$-_.+!*'(),:@&=/~Hello%20World";
134 src =
"$-_.+!*'(),:@&=/~Hello World";
135 target =
"$-_.+!*'(),:@&=/~Hello%20World";
147 src =
"$-_.+!*'(),:@&=/~Hello World";
148 target =
"%24-_.%2b%21*%27%28%29%2c%3a%40%26%3d%2f%7eHello+World";
160 src =
"\xFF<>&\'\"Hello World";
161 target =
"\xFF<>&'"Hello World";
169#if !APR_CHARSET_EBCDIC
174 src =
"\xFF<>&\'\"Hello World";
175 target =
"ÿ<>&'"Hello World";
187 src =
"\xFF<>&'"Hello World";
188 target =
"\xFF<>&\'\"Hello World";
196 src =
"ÿ<>&'"Hello World";
197 target =
"\xFF<>&\'\"Hello World";
205 src =
" <>&'"Hello World";
206 target =
" <>&\'\"Hello World";
219 src =
"\a\b\f\\n\r\t\v\"Hello World\"";
220 target =
"\\a\\b\\f\\\\n\\r\\t\\v\"Hello World\"";
228 src =
"\a\b\f\\n\r\t\v\"Hello World\"";
229 target =
"\\a\\b\\f\\\\n\\r\\t\\v\\\"Hello World\\\"";
237 src =
"\xFF\x00\xFF\x00";
246 src =
"\xFF\x00\xFF\x00";
247 target =
"ff:00:ff:00";
256 target =
"\xFF\x00\xFF\x00";
265 src =
"Parens R Us (for all your parenthetical needs) plus asterisk* \"+,;<>\\";
266 target =
"Parens R Us (for all your parenthetical needs) plus asterisk* \\22\\2b\\2c\\3b\\3c\\3e\\5c";
277 src =
"Parens R Us (for all your parenthetical needs) plus asterisk* \"+,;<>\\";
278 target =
"Parens R Us \\28for all your parenthetical needs\\29 plus asterisk\\2a \"+,;<>\\5c";
289 src =
"Parens R Us (for all your parenthetical needs) plus asterisk* \"+,;<>\\";
290 target =
"Parens R Us \\28for all your parenthetical needs\\29 plus asterisk\\2a \\22\\2b\\2c\\3b\\3c\\3e\\5c";
const char apr_size_t len
void abts_run_test(abts_suite *ts, test_func f, void *value)
#define ABTS_PTR_EQUAL(a, b, c)
#define ABTS_STR_EQUAL(a, b, c)
#define ABTS_ASSERT(a, b, c)
#define ABTS_INT_EQUAL(a, b, c)
#define APR_ESCAPE_LDAP_ALL
#define APR_ESCAPE_STRING
#define APR_ESCAPE_LDAP_FILTER
#define APR_ESCAPE_LDAP_DN
const char int apr_pool_t * pool
#define apr_pool_create(newpool, parent)
abts_suite * testescape(abts_suite *suite)
static void test_escape(abts_case *tc, void *data)