From 1566b6faa8534118c3566188181367cd0868468f Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 9 Nov 2023 23:19:53 +0100 Subject: Added partial matching and introduced threads --- examples/dte/replace.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/dte/replace.h (limited to 'examples/dte/replace.h') 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 +#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 -- cgit v1.2.3