summaryrefslogtreecommitdiff
path: root/src/match.h
blob: 0fa7b6f3d7d160eb326872863f8833229d5e0ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef MATCH_H
#define MATCH_H MATCH_H

#include <math.h>

typedef double score_t;
#define SCORE_MAX INFINITY
#define SCORE_MIN -INFINITY

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