stdlib/NSString APIs on String: change stringByRemovingPercentEncoding property

type to be an optional string; add tests


Swift SVN r21021
This commit is contained in:
Dmitri Hrybenko
2014-08-04 18:02:14 +00:00
parent 4ff01af85a
commit 8c41e1892b
2 changed files with 42 additions and 5 deletions

View File

@@ -1295,7 +1295,7 @@ extension String {
/// Returns a new string made from the `String` by replacing
/// all percent encoded sequences with the matching UTF-8
/// characters.
public var stringByRemovingPercentEncoding: String {
public var stringByRemovingPercentEncoding: String? {
return _ns.stringByRemovingPercentEncoding
}