File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public extension SwiftString {
4444 #elseif CLR
4545 return System . Text. Encoding. GetEncoding ( name)
4646 #elseif ISLAND
47- switch name. uppercaseString {
47+ switch name. uppercased ( ) {
4848 case " UTF8 " , " UTF-8 " : return RemObjects . Elements. System. Encoding. UTF8
4949 case " UTF16 " , " UTF-16 " : return RemObjects . Elements. System. Encoding. UTF16
5050 case " UTF32 " , " UTF-32 " : return RemObjects . Elements. System. Encoding. UTF32
@@ -56,7 +56,7 @@ public extension SwiftString {
5656 default : throw Exception ( " Invalid Encoding ' \( name) ' " )
5757 }
5858 #elseif COCOA
59- switch name. uppercaseString {
59+ switch name. uppercased ( ) {
6060 case " UTF8 " , " UTF-8 " : return NSStringEncoding . UTF8StringEncoding
6161 case " UTF16 " , " UTF-16 " : return NSStringEncoding . UTF16StringEncoding
6262 case " UTF32 " , " UTF-32 " : return NSStringEncoding . UTF32StringEncoding
Original file line number Diff line number Diff line change 117117 return self . ToLower ( )
118118 #endif
119119 }
120- #endif
121120
122121 #if COCOA
123122 /*public var nulTerminatedUTF8: Character[] {
You can’t perform that action at this time.
0 commit comments