summaryrefslogtreecommitdiff
path: root/examples/dte/replace.h
diff options
context:
space:
mode:
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 @@
+#ifndef REPLACE_H
+#define REPLACE_H
+
+#include <stdbool.h>
+#include "util/macros.h"
+#include "view.h"
+
+typedef enum {
+ REPLACE_CONFIRM = 1 << 0,
+ REPLACE_GLOBAL = 1 << 1,
+ REPLACE_IGNORE_CASE = 1 << 2,
+ REPLACE_BASIC = 1 << 3,
+ REPLACE_CANCEL = 1 << 4,
+} ReplaceFlags;
+
+bool reg_replace(View *view, const char *pattern, const char *format, ReplaceFlags flags) NONNULL_ARGS;
+
+#endif