|
a/src/utils/smallut.h |
|
b/src/utils/smallut.h |
|
... |
|
... |
78 |
/** Escape things like < or & by turining them to entities */
|
78 |
/** Escape things like < or & by turining them to entities */
|
79 |
extern string escapeHtml(const string &in);
|
79 |
extern string escapeHtml(const string &in);
|
80 |
|
80 |
|
81 |
/** Replace some chars with spaces (ie: newline chars). This is not utf8-aware
|
81 |
/** Replace some chars with spaces (ie: newline chars). This is not utf8-aware
|
82 |
* so chars should only contain ascii */
|
82 |
* so chars should only contain ascii */
|
83 |
extern string neutchars(const string &str, string chars);
|
83 |
extern string neutchars(const string &str, const string &chars);
|
|
|
84 |
extern void neutchars(const string &str, string& out, const string &chars);
|
84 |
|
85 |
|
85 |
/** turn string into something that won't be expanded by a shell. In practise
|
86 |
/** turn string into something that won't be expanded by a shell. In practise
|
86 |
* quote with single-quotes and escape internal singlequotes */
|
87 |
* quote with single-quotes and escape internal singlequotes */
|
87 |
extern string escapeShell(const string &str);
|
88 |
extern string escapeShell(const string &str);
|
88 |
|
89 |
|