1414// MARK: - Private extensions for parsing encoding names
1515
1616private extension UTF8 . CodeUnit {
17- func _isASCIICaseinsensitivelyEqual ( to other: UTF8 . CodeUnit ) -> Bool {
17+ func _isASCIICaseInsensitivelyEqual ( to other: UTF8 . CodeUnit ) -> Bool {
1818 return switch self {
1919 case other, other. _uppercased, other. _lowercased: true
2020 default : false
@@ -23,11 +23,11 @@ private extension UTF8.CodeUnit {
2323}
2424
2525private extension String {
26- func _isASCIICaseinsensitivelyEqual ( to other: String ) -> Bool {
26+ func _isASCIICaseInsensitivelyEqual ( to other: String ) -> Bool {
2727 let ( myUTF8, otherUTF8) = ( self . utf8, other. utf8)
2828 var ( myIndex, otherIndex) = ( myUTF8. startIndex, otherUTF8. startIndex)
2929 while myIndex < myUTF8. endIndex && otherIndex < otherUTF8. endIndex {
30- guard myUTF8 [ myIndex] . _isASCIICaseinsensitivelyEqual ( to: otherUTF8 [ otherIndex] ) else {
30+ guard myUTF8 [ myIndex] . _isASCIICaseInsensitivelyEqual ( to: otherUTF8 [ otherIndex] ) else {
3131 return false
3232 }
3333
@@ -64,14 +64,14 @@ internal struct IANACharset {
6464
6565 func matches( _ string: String ) -> Bool {
6666 if let preferredMIMEName = self . preferredMIMEName,
67- preferredMIMEName. _isASCIICaseinsensitivelyEqual ( to: string) {
67+ preferredMIMEName. _isASCIICaseInsensitivelyEqual ( to: string) {
6868 return true
6969 }
70- if name. _isASCIICaseinsensitivelyEqual ( to: string) {
70+ if name. _isASCIICaseInsensitivelyEqual ( to: string) {
7171 return true
7272 }
7373 for alias in aliases {
74- if alias. _isASCIICaseinsensitivelyEqual ( to: string) {
74+ if alias. _isASCIICaseInsensitivelyEqual ( to: string) {
7575 return true
7676 }
7777 }
0 commit comments