summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/levenshtein.h
blob: 34ca173c557d9e4191aa65cfbc9ea34b2af3abcc (plain)
1
2
3
4
5
6
7
8
9
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __PERF_LEVENSHTEIN_H
#define __PERF_LEVENSHTEIN_H

int levenshtein(const char *string1, const char *string2,
	int swap_penalty, int substition_penalty,
	int insertion_penalty, int deletion_penalty);

#endif /* __PERF_LEVENSHTEIN_H */
OpenPOWER on IntegriCloud