stdlib/String: use the Unicode collation algorithm in String's and Character's conformance to Comparable

rdar://17498444


Swift SVN r20554
This commit is contained in:
Dmitri Hrybenko
2014-07-25 18:32:36 +00:00
parent 61f3cd9e6e
commit ed855afb68
7 changed files with 253 additions and 114 deletions

View File

@@ -1434,13 +1434,3 @@ extension String {
}
}
@transparent public
func == (lhs: String, rhs: NSString) -> Bool {
return lhs == (rhs as String)
}
@transparent public
func == (lhs: NSString, rhs: String) -> Bool {
return (lhs as String) == rhs
}