File tree 1 file changed +1
-8
lines changed
Sources/FoundationInternationalization/ICU
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -18,26 +18,19 @@ internal import _FoundationICU
18
18
private extension String . Encoding {
19
19
var _icuConverterName : String ? {
20
20
// TODO: Replace this with forthcoming(?) public property such as https://github.com/swiftlang/swift-foundation/pull/1243
21
+ // Note: UTF-* and US-ASCII are omitted here because they are supposed to be converted upstream.
21
22
switch self {
22
- case . utf8: " UTF-8 "
23
- case . ascii: " US-ASCII "
24
23
case . japaneseEUC: " EUC-JP "
25
24
case . isoLatin1: " ISO-8859-1 "
26
25
case . shiftJIS: " Shift_JIS "
27
26
case . isoLatin2: " ISO-8859-2 "
28
- case . unicode: " UTF-16 "
29
27
case . windowsCP1251: " windows-1251 "
30
28
case . windowsCP1252: " windows-1252 "
31
29
case . windowsCP1253: " windows-1253 "
32
30
case . windowsCP1254: " windows-1254 "
33
31
case . windowsCP1250: " windows-1250 "
34
32
case . iso2022JP: " ISO-2022-JP "
35
33
case . macOSRoman: " macintosh "
36
- case . utf16BigEndian: " UTF-16BE "
37
- case . utf16LittleEndian: " UTF-16LE "
38
- case . utf32: " UTF-32 "
39
- case . utf32BigEndian: " UTF-32BE "
40
- case . utf32LittleEndian: " UTF-32LE "
41
34
default : nil
42
35
}
43
36
}
You can’t perform that action at this time.
0 commit comments