Revert "[stdlib] NSStringAPI: add stringByApplyingTransform"

This is breaking NSStringAPI.swift on the bots.

Swift SVN r28084
This commit is contained in:
Ted Kremenek
2015-05-02 07:16:48 +00:00
parent a620961b7c
commit bde7daa23d
2 changed files with 0 additions and 18 deletions

View File

@@ -1468,13 +1468,5 @@ 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)
}
}

View File

@@ -1878,16 +1878,6 @@ NSStringAPIs.test("copy construction") {
expectEqual(expected, y as String)
}
NSStringAPIs.test("stringByApplyingTransform(_:reverse:)") {
let veryKewl = "tre\u{300}s k\u{fc}hl"
if #available(OSX 10.11, iOS 9.0, *) {
expectEqual(
"tres kuhl",
veryKewl.stringByApplyingTransform(
NSStringTransformStripDiacritics, reverse: false))
}
}
var CStringTests = TestSuite("CStringTests")
func getNullCString() -> UnsafeMutablePointer<CChar> {