1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.
7 */
8
9/*
10 * @-
11 * @+ Implementation
12 *
13 */
14#ifndef _TXTSIM_H
15#define _TXTSIM_H
16#include "mal.h"
17#include <string.h>
18#include "gdk.h"
19#include <limits.h>
20
21mal_export str levenshtein_impl(int *result, str *s, str *t, int *insdel_cost, int *replace_cost, int *transpose_cost);
22mal_export str levenshteinbasic_impl(int *result, str *s, str *t);
23mal_export str levenshteinbasic2_impl(int *result, str *s, str *t);
24mal_export str fstrcmp_impl(dbl *ret, str *string1, str *string2, dbl *minimum);
25mal_export str fstrcmp0_impl(dbl *ret, str *string1, str *string2);
26mal_export str soundex_impl(str *res, str *Name);
27mal_export str stringdiff_impl(int *res, str *s1, str*s2);
28mal_export str CMDqgramnormalize(str *res, str *input);
29mal_export str CMDqgramselfjoin(bat *res1, bat *res2, bat *qid, bat *bid, bat *pid, bat *lid, flt *c, int *k);
30mal_export str CMDstr2qgrams(bat *ret, str *val);
31
32#endif /*_TXTSIM_H*/
33
34
35
36