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>
StringDistance(const String &source, Int maxDistance=-1, Bool countSwaps=True, Bool ignoreBlanks=True, Bool caseInsensitive=False)
Construct from the source string and maximum distance.
static Int doDistance(const String &source, const String &target, Bool countSwaps, Matrix< Int > &matrix)
Calculate the distance.
const Matrix< Int > & matrix() const
static Int distance(const String &source, const String &target, Bool countSwaps=True)
Calculate the distance between the two strings.
static String removeBlanks(const String &source)
Remove blanks from the given string.
Int distance(const String &target) const
Calculate the distance from the string to the string given in the constructor.
const string & source() const
Get data members.
StringDistance()
Default constructor sets maxDistance to 0.
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.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.