summaryrefslogtreecommitdiff
path: root/lib/uwildmat/uwildmat.h
blob: 2e47189122c38c4db55918f71b40e8166067d474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

#ifndef UWILDMAT_H
#define UWILDMAT_H 1

#include <stdio.h>
#include <sys/types.h>
#include <stdbool.h>

/*
**  WILDMAT MATCHING
*/
enum uwildmat {
    UWILDMAT_FAIL   = 0,
    UWILDMAT_MATCH  = 1,
    UWILDMAT_POISON
};

extern bool             is_valid_utf8(const char *start);
extern bool             uwildmat(const char *text, const char *pat);
extern bool             uwildmat_simple(const char *text, const char *pat);
extern enum uwildmat    uwildmat_poison(const char *text, const char *pat);


#endif /* UWILDMAT_H */