[stdlib] Swift.UTF[8|16|32] availability

This commit is contained in:
Dave Abrahams
2017-05-11 13:24:06 -07:00
parent ddf7ad517f
commit 01d886fe3d

View File

@@ -308,6 +308,8 @@ extension Unicode.UTF8 : UnicodeCodec {
return Int(_swift_stdlib_strlen(input))
}
}
@available(swift, obsoleted: 4.0, renamed: "Unicode.UTF8")
public typealias UTF8 = Unicode.UTF8
/// A codec for translating between Unicode scalar values and UTF-16 code
@@ -418,6 +420,7 @@ extension Unicode.UTF16 : UnicodeCodec {
processCodeUnit(UInt16(extendingOrTruncating: s))
}
}
@available(swift, obsoleted: 4.0, renamed: "Unicode.UTF16")
public typealias UTF16 = Unicode.UTF16
/// A codec for translating between Unicode scalar values and UTF-32 code
@@ -508,6 +511,7 @@ extension Unicode.UTF32 : UnicodeCodec {
processCodeUnit(UInt32(input))
}
}
@available(swift, obsoleted: 4.0, renamed: "Unicode.UTF32")
public typealias UTF32 = Unicode.UTF32
/// Translates the given input from one Unicode encoding to another by calling