diff options
author | pgen <p.gen.progs@gmail.com> | 2015-10-30 23:04:16 +0100 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2015-10-30 23:04:16 +0100 |
commit | 0102ed2a7e20f7beeb2bcc2195cb5d9f81b351a6 (patch) | |
tree | 30be4e5dc13423b353e093cc465158662b9af0ff /smenu.h | |
parent | cbccf97a3186a04d14650105b057380e6e0ad197 (diff) |
Improve the word substitution mechanism
- Add a -S option to do substitution on all words
- Allow more than one -S/-I/-E option with cumulative effects
- Adjust the manual accordingly and fix its use of fonts
Diffstat (limited to 'smenu.h')
-rw-r--r-- | smenu.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -25,6 +25,7 @@ typedef struct win_s win_t; typedef struct word_s word_t; typedef struct color_s color_t; typedef struct limits_s limits_t; +typedef struct sed_s sed_t; void help(win_t * win, term_t * term, int last_line); void usage(void); @@ -108,7 +109,5 @@ void sig_handler(int s); void set_new_first_column(win_t * win, term_t * term, word_t * word_a); -int parse_replacement_string(char *str, regex_t * re, char **rs, int *global, - int *visual); -int replace(char *orig, char *subst, regex_t * re, int global, char *buf, - size_t bufsiz); +int parse_sed_like_string(sed_t * sed); +int replace(char *orig, sed_t * sed, char *buf, size_t bufsiz); |