OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
Levenshtein.hpp
Go to the documentation of this file.
1//
2// Levenshtein Distance Algorithm: C++ Implementation by Anders Sewerin Johansen
3//
4#ifndef __OPENTREP_BOM_LEVENSHTEIN_HPP
5#define __OPENTREP_BOM_LEVENSHTEIN_HPP
6
7// //////////////////////////////////////////////////////////////////////
8// Import section
9// //////////////////////////////////////////////////////////////////////
10// STL
11#include <string>
12// OpenTREP
15
16namespace OPENTREP {
17
20 class Levenshtein : public BomAbstract {
21 public:
23 static int getDistance (const std::string& iSource,
24 const std::string& iTarget);
25 };
26
27}
28#endif // __OPENTREP_BOM_LEVENSHTEIN_HPP
static int getDistance(const std::string &iSource, const std::string &iTarget)