diff options
author | Werner Koch <[email protected]> | 2007-06-19 09:11:11 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-06-19 09:11:11 +0000 |
commit | 540f9164c01dbbd1f8fc9abcd2ee67dbf6e1ee10 (patch) | |
tree | 298058ec8adf7c7c059ce7db127334a9ddb49bec /jnlib/stringhelp.h | |
parent | jnlib/ (diff) | |
download | gnupg-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.h | 5 |
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*/ |