aboutsummaryrefslogtreecommitdiff
path: root/examples/dte/replace.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-11-09 23:19:53 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-11-09 23:19:53 +0100
commit1566b6faa8534118c3566188181367cd0868468f (patch)
tree1de8d4b369efb5e592685a31088f798a6b63ffa1 /examples/dte/replace.h
parent349991bf6efe473ab9a5cbdae0a8114d72b997e3 (diff)
downloadcrep-1566b6faa8534118c3566188181367cd0868468f.tar.gz
Added partial matching and introduced threads
Diffstat (limited to 'examples/dte/replace.h')
-rw-r--r--examples/dte/replace.h18
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
8typedef 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
16bool reg_replace(View *view, const char *pattern, const char *format, ReplaceFlags flags) NONNULL_ARGS;
17
18#endif