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 string & source() const
Get data members.
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.
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.
String: the storage and methods of handling collections of characters.
Class to deal with Levensthein distance of strings.
const Matrix< Int > & matrix() const
this file contains all the compiler specific defines
StringDistance()
Default constructor sets maxDistance to 0.
static Int doDistance(const String &source, const String &target, Bool countSwaps, Matrix< Int > &matrix)
Calculate the distance.