mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] Replace UTF8.EncodedScalar
This is a way of testing infrastructure for an updated UTF8View iterator
This commit is contained in:
@@ -88,7 +88,8 @@ extension _UnicodeEncoding_ {
|
||||
internal static func _transcode<FromEncoding : Unicode.Encoding>(
|
||||
_ content: FromEncoding.EncodedScalar, from _: FromEncoding.Type
|
||||
) -> EncodedScalar {
|
||||
return _encode(FromEncoding.decode(content))
|
||||
return transcode(content, from: FromEncoding.self)
|
||||
?? encodedReplacementCharacter
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user