1 #ifndef MC__STRUTILS_ESCAPE_H
2 #define MC__STRUTILS_ESCAPE_H
6 #include "lib/global.h" /* <glib.h> */
8 /*** typedefs(not structures) and defined constants **********************************************/
10 /*** enums ***************************************************************************************/
12 /*** structures declarations (and typedefs of structures)*****************************************/
14 /*** global variables defined in .c file *********************************************************/
16 /*** declarations of public functions ************************************************************/
18 char *strutils_escape (const char *src
, gsize src_len
, const char *escaped_chars
,
19 gboolean escape_non_printable
);
20 char *strutils_unescape (const char *src
, gsize src_len
, const char *unescaped_chars
,
21 gboolean unescape_non_printable
);
22 char *strutils_shell_unescape (const char *text
);
23 char *strutils_shell_escape (const char *text
);
25 char *strutils_glob_escape (const char *text
);
26 char *strutils_glob_unescape (const char *text
);
28 char *strutils_regex_escape (const char *text
);
29 char *strutils_regex_unescape (const char *text
);
31 gboolean
strutils_is_char_escaped (const char *start
, const char *current
);
33 #endif /* MC__STRUTILS_ESCAPE_H */