mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user