mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Handle file names with quotes.
Let's repurpose escape_string and make it more flexible by letting us choose the characters to escape.
This commit is contained in:
parent
db85ab7c90
commit
027acffb42
4 changed files with 20 additions and 14 deletions
|
|
@ -88,8 +88,8 @@ char *stristr_full(const char *data, const char *key);
|
|||
char *ascii_strup(char *str);
|
||||
char *ascii_strdown(char *str);
|
||||
|
||||
/* Escape all '"', "'" and '\' chars with '\' */
|
||||
char *escape_string(const char *str);
|
||||
/* Escape all the characters in `what' with a backslash */
|
||||
char *escape_string(const char *str, const char *what);
|
||||
|
||||
/* convert all low-ascii (<32) to ^<A..> combinations */
|
||||
char *show_lowascii(const char *str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue