diff options
Diffstat (limited to 'src/lib/util/corestr.h')
-rw-r--r-- | src/lib/util/corestr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util/corestr.h b/src/lib/util/corestr.h index d7734d50b29..c0bf4ef16d5 100644 --- a/src/lib/util/corestr.h +++ b/src/lib/util/corestr.h @@ -64,4 +64,11 @@ std::string &strmakeupper(std::string& str); std::string &strmakelower(std::string& str); int strreplace(std::string &str, const std::string& search, const std::string& replace); +namespace util { + +// based on Jaro-Winkler distance - returns value from 0.0 (totally dissimilar) to 1.0 (identical) +double edit_distance(std::u32string const &lhs, std::u32string const &rhs); + +} // namespace util + #endif // MAME_UTIL_CORESTR_H |