StringRef ends/startswith-lower -> insensitive

Updating StringRef startswith and endswith API to use insensitive rather
than lower.

(cherry picked from commit 1b8b39e6de)
This commit is contained in:
Evan Wilde
2021-06-30 11:08:33 -07:00
committed by Eric Miotto
parent 68748a8965
commit 0919c2cd70
5 changed files with 7 additions and 7 deletions

View File

@@ -541,7 +541,7 @@ void CodeCompletionOrganizer::Impl::addCompletionsWithFilter(
if (options.fuzzyMatching && filterText.size() >= options.minFuzzyLength) {
match = pattern.matchesCandidate(completion->getName());
} else {
match = completion->getName().startswith_lower(filterText);
match = completion->getName().startswith_insensitive(filterText);
}
bool isExactMatch = match && completion->getName().equals_lower(filterText);