36#pragma GCC diagnostic push
37#pragma GCC diagnostic ignored "-Wnull-dereference"
41#pragma GCC diagnostic pop
43 for (
size_t i = 0;
i <=
size1; ++
i) {
47 for (
size_t i = 0;
i <=
size2; ++
i) {
58 size_t dist1[std::numeric_limits<unsigned char>::max() + 1] = { 0 };
83template <
typename DistanceArray>
95template <
typename DistanceArray>
99 size_t buffer[128] = { 0 };
Contains all utilities provides by the c++utilities library.
IntegralType stringToNumber(const StringType &string, BaseType base=10)
Converts the given string to an unsigned/signed number assuming string uses the specified base.
constexpr T min(T first, T second)
Returns the smallest of the given items.
CPP_UTILITIES_EXPORT std::size_t computeDamerauLevenshteinDistance(const char *str1, std::size_t size1, const char *str2, std::size_t size2)