summaryrefslogtreecommitdiffstats
path: root/lib/strescape.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:12 +0000
commit8ccb487c21368a7fdc8c7c72315325bf0aa06147 (patch)
treeb2056fae01d325924508a41731edfbd4c3cddd23 /lib/strescape.h
parentInitial commit. (diff)
downloadmc-upstream/3%4.8.29.tar.xz
mc-upstream/3%4.8.29.zip
Adding upstream version 3:4.8.29.upstream/3%4.8.29upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--lib/strescape.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/strescape.h b/lib/strescape.h
new file mode 100644
index 0000000..a24f5d6
--- /dev/null
+++ b/lib/strescape.h
@@ -0,0 +1,33 @@
+#ifndef MC__STRUTILS_ESCAPE_H
+#define MC__STRUTILS_ESCAPE_H
+
+#include <config.h>
+
+#include "lib/global.h" /* <glib.h> */
+
+/*** typedefs(not structures) and defined constants **********************************************/
+
+/*** enums ***************************************************************************************/
+
+/*** structures declarations (and typedefs of structures)*****************************************/
+
+/*** global variables defined in .c file *********************************************************/
+
+/*** declarations of public functions ************************************************************/
+
+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);
+
+char *strutils_glob_escape (const char *text);
+char *strutils_glob_unescape (const char *text);
+
+char *strutils_regex_escape (const char *text);
+char *strutils_regex_unescape (const char *text);
+
+gboolean strutils_is_char_escaped (const char *start, const char *current);
+
+#endif /* MC__STRUTILS_ESCAPE_H */