2009-06-09 12:50:45 +04:00
|
|
|
#ifndef MC__STRUTILS_ESCAPE_H
|
|
|
|
#define MC__STRUTILS_ESCAPE_H
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
#include "lib/global.h" /* <glib.h> */
|
2009-06-09 12:50:45 +04:00
|
|
|
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2021-05-16 13:56:44 +03:00
|
|
|
char *strutils_escape (const char *src, gsize src_len, const char *escaped_chars,
|
|
|
|
gboolean escape_non_printable);
|
|
|
|
char *strutils_unescape (const char *src, gsize src_len, const char *unescaped_chars,
|
|
|
|
gboolean unescape_non_printable);
|
|
|
|
char *strutils_shell_unescape (const char *text);
|
|
|
|
char *strutils_shell_escape (const char *text);
|
2009-06-09 16:14:11 +04:00
|
|
|
|
2021-05-16 13:56:44 +03:00
|
|
|
char *strutils_glob_escape (const char *text);
|
|
|
|
char *strutils_glob_unescape (const char *text);
|
2009-06-09 12:50:45 +04:00
|
|
|
|
2021-05-16 13:56:44 +03:00
|
|
|
char *strutils_regex_escape (const char *text);
|
|
|
|
char *strutils_regex_unescape (const char *text);
|
2009-06-09 16:14:11 +04:00
|
|
|
|
2021-05-16 13:56:44 +03:00
|
|
|
gboolean strutils_is_char_escaped (const char *start, const char *current);
|
2009-06-09 16:14:11 +04:00
|
|
|
|
2021-05-16 13:56:44 +03:00
|
|
|
#endif /* MC__STRUTILS_ESCAPE_H */
|