mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Swift.UTF[8|16|32] availability
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user