diff options
author | Abseil Team <absl-team@google.com> | 2022-10-17 01:09:18 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-10-17 01:09:54 -0700 |
commit | edf41d72381bf496c83b24b9dc242bc055c584dd (patch) | |
tree | ff991f5348838e496710ea51c98df58cacfeb222 /absl/strings/CMakeLists.txt | |
parent | 5fa65f28e46e86c44966a1ca8a727a329d9c1ff8 (diff) |
Implement function to calculate Damerau-Levenshtein distance between two strings.
PiperOrigin-RevId: 481568970
Change-Id: Icb132348f62fed4c0168aac4963b3313a060890b
Diffstat (limited to 'absl/strings/CMakeLists.txt')
-rw-r--r-- | absl/strings/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/absl/strings/CMakeLists.txt b/absl/strings/CMakeLists.txt index fe82e1df..30dedcf5 100644 --- a/absl/strings/CMakeLists.txt +++ b/absl/strings/CMakeLists.txt @@ -21,6 +21,7 @@ absl_cc_library( "ascii.h" "charconv.h" "escaping.h" + "internal/damerau_levenshtein_distance.h" "internal/string_constant.h" "match.h" "numbers.h" @@ -39,6 +40,7 @@ absl_cc_library( "internal/charconv_bigint.h" "internal/charconv_parse.cc" "internal/charconv_parse.h" + "internal/damerau_levenshtein_distance.cc" "internal/memutil.cc" "internal/memutil.h" "internal/stringify_sink.h" @@ -135,6 +137,19 @@ absl_cc_test( absl_cc_test( NAME + damerau_levenshtein_distance_test + SRCS + "internal/damerau_levenshtein_distance_test.cc" + COPTS + ${ABSL_TEST_COPTS} + DEPS + absl::strings + absl::base + GTest::gmock_main +) + +absl_cc_test( + NAME memutil_test SRCS "internal/memutil.h" |