mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Foundation overlay: add String.stringByApplyingTransform()
This API is new in OS X 10.11 and iOS 9.0. rdar://20645458 Swift SVN r28257
This commit is contained in:
@@ -1468,5 +1468,13 @@ extension String {
|
||||
try self._ns.writeToURL(
|
||||
url, atomically: useAuxiliaryFile, encoding: enc)
|
||||
}
|
||||
|
||||
@availability(iOS, introduced=9.0)
|
||||
@availability(OSX, introduced=10.11)
|
||||
public func stringByApplyingTransform(
|
||||
transform: String, reverse: Bool
|
||||
) -> String? {
|
||||
return _ns.stringByApplyingTransform(transform, reverse: reverse)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user