|
a/src/smallut.h |
|
b/src/smallut.h |
|
... |
|
... |
150 |
|
150 |
|
151 |
/** Double-quote and escape to produce C source code string (prog generation) */
|
151 |
/** Double-quote and escape to produce C source code string (prog generation) */
|
152 |
extern std::string makeCString(const std::string& in);
|
152 |
extern std::string makeCString(const std::string& in);
|
153 |
|
153 |
|
154 |
/** Replace some chars with spaces (ie: newline chars). */
|
154 |
/** Replace some chars with spaces (ie: newline chars). */
|
155 |
extern std::string neutchars(const std::string& str, const std::string& chars);
|
155 |
extern std::string neutchars(const std::string& str, const std::string& chars,
|
|
|
156 |
char rep = ' ');
|
156 |
extern void neutchars(const std::string& str, std::string& out,
|
157 |
extern void neutchars(const std::string& str, std::string& out,
|
157 |
const std::string& chars);
|
158 |
const std::string& chars, char rep = ' ');
|
158 |
|
159 |
|
159 |
/** Turn string into something that won't be expanded by a shell. In practise
|
160 |
/** Turn string into something that won't be expanded by a shell. In practise
|
160 |
* quote with double-quotes and escape $`\ */
|
161 |
* quote with double-quotes and escape $`\ */
|
161 |
extern std::string escapeShell(const std::string& str);
|
162 |
extern std::string escapeShell(const std::string& str);
|
162 |
|
163 |
|