aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/stringhelp.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-06-19 09:11:11 +0000
committerWerner Koch <[email protected]>2007-06-19 09:11:11 +0000
commit540f9164c01dbbd1f8fc9abcd2ee67dbf6e1ee10 (patch)
tree298058ec8adf7c7c059ce7db127334a9ddb49bec /jnlib/stringhelp.h
parentjnlib/ (diff)
downloadgnupg-540f9164c01dbbd1f8fc9abcd2ee67dbf6e1ee10.tar.gz
gnupg-540f9164c01dbbd1f8fc9abcd2ee67dbf6e1ee10.zip
Made percent_escape more general.
Added regression tests support to jnlib. W32 changes.
Diffstat (limited to 'jnlib/stringhelp.h')
-rw-r--r--jnlib/stringhelp.h5
1 files changed, 3 insertions, 2 deletions
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*/