From 540f9164c01dbbd1f8fc9abcd2ee67dbf6e1ee10 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 19 Jun 2007 09:11:11 +0000 Subject: Made percent_escape more general. Added regression tests support to jnlib. W32 changes. --- jnlib/stringhelp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'jnlib/stringhelp.h') diff --git a/jnlib/stringhelp.h b/jnlib/stringhelp.h index fdd887bf2..5f08745cb 100644 --- a/jnlib/stringhelp.h +++ b/jnlib/stringhelp.h @@ -117,8 +117,9 @@ isascii (int c) #endif #define STR2(v) STR(v) -/* Percent-escape the string STR by replacing colons with '%3a'. */ -char *percent_escape (const char *str); +/* Percent-escape the string STR by replacing colons with '%3a'. If + EXTRA is not NULL, also replace all characters given in EXTRA. */ +char *percent_escape (const char *str, const char *extra); #endif /*LIBJNLIB_STRINGHELP_H*/ -- cgit v1.2.3