mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rename StringRef::endswith references to StringRef::ends_with
Missed this when doing the `startswith` renaming. `endswith` has also been deprecated upstream (and presumably soon to be removed).
This commit is contained in:
@@ -44,7 +44,7 @@ bool StringRef::starts_with_insensitive(StringRef Prefix) const {
|
||||
ascii_strncasecmp(Data, Prefix.Data, Prefix.Length) == 0;
|
||||
}
|
||||
|
||||
bool StringRef::endswith_insensitive(StringRef Suffix) const {
|
||||
bool StringRef::ends_with_insensitive(StringRef Suffix) const {
|
||||
return Length >= Suffix.Length &&
|
||||
ascii_strncasecmp(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user