blob: d4f292c42b94bab1b8c48c463280806de67e112d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef MATCH_H
#define MATCH_H MATCH_H
#include <math.h>
typedef double score_t;
#define SCORE_MAX INFINITY
#define SCORE_MIN -INFINITY
#define MATCH_MAX_LEN 1024
int has_match(const char *needle, const char *haystack);
score_t match_positions(const char *needle, const char *haystack, size_t *positions);
score_t match(const char *needle, const char *haystack);
#endif
|