Go to the documentation of this file.
28 #ifndef CASA_STRINGDISTANCE_H
29 #define CASA_STRINGDISTANCE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/BasicSL/String.h>
34 #include <casacore/casa/Arrays/Matrix.h>
const Matrix< Int > & matrix() const
const string & source() const
Get data members.
StringDistance()
Default constructor sets maxDistance to 0.
this file contains all the compiler specific defines
static String removeBlanks(const String &source)
Remove blanks from the given string.
Bool match(const String &target) const
Test if the given target string is within the maximum distance.
static Int doDistance(const String &source, const String &target, Bool countSwaps, Matrix< Int > &matrix)
Calculate the distance.
String: the storage and methods of handling collections of characters.
Int distance(const String &target) const
Calculate the distance from the string to the string given in the constructor.
bool Bool
Define the standard types used by Casacore.
Class to deal with Levensthein distance of strings.