diff options
Diffstat (limited to 'examples/dte/replace.h')
| -rw-r--r-- | examples/dte/replace.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/dte/replace.h b/examples/dte/replace.h new file mode 100644 index 0000000..783a46f --- /dev/null +++ b/examples/dte/replace.h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | #ifndef REPLACE_H | ||
| 2 | #define REPLACE_H | ||
| 3 | |||
| 4 | #include <stdbool.h> | ||
| 5 | #include "util/macros.h" | ||
| 6 | #include "view.h" | ||
| 7 | |||
| 8 | typedef enum { | ||
| 9 | REPLACE_CONFIRM = 1 << 0, | ||
| 10 | REPLACE_GLOBAL = 1 << 1, | ||
| 11 | REPLACE_IGNORE_CASE = 1 << 2, | ||
| 12 | REPLACE_BASIC = 1 << 3, | ||
| 13 | REPLACE_CANCEL = 1 << 4, | ||
| 14 | } ReplaceFlags; | ||
| 15 | |||
| 16 | bool reg_replace(View *view, const char *pattern, const char *format, ReplaceFlags flags) NONNULL_ARGS; | ||
| 17 | |||
| 18 | #endif | ||
