89cacc8b69a80a7e2787aaf9082782a83352d789 galt Tue Oct 4 14:34:03 2016 -0700 refs #18175. more elegant code for the hex decoder for attr css js url. Thanks Angie. diff --git src/lib/tests/testDecodedString.c src/lib/tests/testDecodedString.c index 5c9fa5d..19293dd 100644 --- src/lib/tests/testDecodedString.c +++ src/lib/tests/testDecodedString.c @@ -10,30 +10,35 @@ void usage() /* Explain usage and exit */ { errAbort( "testDecodedString - test the htmshell decode functions\n" "usage:\n" " testDecodedString type <some quote char>[any characters]<some quote char>\n" " whatever is given on the command line: [any characters] will be parsed\n" " the first character encountered will be the quote character\n" " the string must end with that quote character\n" " beware of your shell consuming your quote characters if you want\n" " to use \" or \'\n" " type can be any of these: attr css js url\n" " -verbose=2 to mirror [any characters]\n" +" HH stands for 2 hex digits 0-9 A-F a-f\n" +"attr \"&#xHH;\"\n" +"css \"\\HH \" (trailing space critical)\n" +"js \"\\xHH\"\n" +"url \"%%HH\"\n" ); } static struct optionSpec options[] = { {NULL, 0}, }; int main(int argc, char *argv[]) /* Process command line. */ { optionInit(&argc, argv, options); if (argc < 3) usage(); int i; char *type = argv[1];