aboutsummaryrefslogtreecommitdiff
path: root/examples/dte/replace.h
blob: 783a46f1b47eee6dfa46120068d632f768776785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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