summaryrefslogtreecommitdiffstats
path: root/smenu.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2015-09-25 23:04:44 +0200
committerpgen <p.gen.progs@gmail.com>2015-09-26 15:07:53 +0200
commitf5c6de81635a571010d1ce8500b55a65cccbd340 (patch)
treeb275a32393b4b7c6b3999094f1b5c6d93fb1fdf7 /smenu.h
parent04659f6836d4e7adfc3919033d49898adc598fab (diff)
Add options to alter words according to regular expression based substitutions
Diffstat (limited to 'smenu.h')
-rw-r--r--smenu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/smenu.h b/smenu.h
index c946fe8..c70bf9e 100644
--- a/smenu.h
+++ b/smenu.h
@@ -101,3 +101,7 @@ void set_new_first_column(win_t * win, word_t * word_a);
void sig_handler(int s);
void set_new_first_column(win_t * win, word_t * word_a);
+
+int parse_replacement_string(char *str, regex_t * re, char **rs, int *global);
+int replace(char *orig, char *subst, regex_t * re, int global, char *buf,
+ size_t bufsiz);