[all-commits] [llvm/llvm-project] a13b61: [ADT] Add edit_distance_insensitive to StringRef
Nathan James via All-commits
all-commits at lists.llvm.org
Sun Jun 5 04:03:33 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a13b61f7f0a2a44546fb39663b0d6f2547841e02
https://github.com/llvm/llvm-project/commit/a13b61f7f0a2a44546fb39663b0d6f2547841e02
Author: Nathan James <n.james93 at hotmail.co.uk>
Date: 2022-06-05 (Sun, 05 Jun 2022)
Changed paths:
M llvm/include/llvm/ADT/StringRef.h
M llvm/include/llvm/ADT/edit_distance.h
M llvm/lib/Support/StringRef.cpp
M llvm/unittests/ADT/StringRefTest.cpp
Log Message:
-----------
[ADT] Add edit_distance_insensitive to StringRef
In some instances its advantageous to calculate edit distances without worrying about casing.
Currently to achieve this both strings need to be converted to the same case first, then edit distance can be calculated.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D126159
More information about the All-commits
mailing list