This commit is contained in:
Michael LeHew
2016-07-19 17:06:02 -07:00
440 changed files with 5108 additions and 3614 deletions

View File

@@ -429,11 +429,11 @@ public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgeb
public func isSuperset(of other: CharacterSet) -> Bool {
return _mapUnmanaged { $0.isSuperset(of: other) }
}
}
/// Returns true if the two `CharacterSet`s are equal.
public func ==(lhs : CharacterSet, rhs: CharacterSet) -> Bool {
return lhs._wrapped.isEqual(rhs as NSCharacterSet)
/// Returns true if the two `CharacterSet`s are equal.
public static func ==(lhs : CharacterSet, rhs: CharacterSet) -> Bool {
return lhs._wrapped.isEqual(rhs as NSCharacterSet)
}
}