Mercurial > dedupe
view EditDistance.hpp @ 8:d7b384b4a834
Fix compilation problems.
Fix printing issues.
Introduce raise function in Exception.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Wed, 22 Aug 2012 18:18:20 +0200 |
| parents | a3834af36579 |
| children | 06166d6c083b |
line wrap: on
line source
#ifndef EDITDISTANCE_HPP #define EDITDISTANCE_HPP #include "OrderedPair.hpp" #include <QtCore/QString> #include <QtCore/QMap> #include <QtCore/QHash> #include "ThreadSafeLookup.hpp" class EditDistance { protected: typedef ThreadSafeLookup<OrderedPair<QString>, int> cacheType; //typedef QMap<OrderedPair<QString>, int> cacheType; //typedef QHash<OrderedPair<QString>, int> cacheType; public: static int Compute(QString a, QString b, bool removeDiacritics = false); static QString removeDiacritics(QString in); static cacheType cache; }; #endif //EDITDISTANCE_HPP
