[stdlib] Inline legacy UTF8.decode

This commit is contained in:
Dave Abrahams
2017-05-02 13:15:40 -07:00
parent a9c8d415df
commit b1ebc5cd48

View File

@@ -190,6 +190,7 @@ extension _Unicode.UTF8 : UnicodeCodec {
/// - Returns: A `UnicodeDecodingResult` instance, representing the next
/// Unicode scalar, an indication of an error, or an indication that the
/// UTF sequence has been fully decoded.
@inline(__always)
public mutating func decode<I : IteratorProtocol>(
_ input: inout I
) -> UnicodeDecodingResult where I.Element == CodeUnit {