mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add isIdentical to StringGuts and use it for comparation
This commit is contained in:
committed by
Rick van Voorden
parent
14e37a15ec
commit
288a69842d
@@ -1064,6 +1064,6 @@ extension String.UTF16View {
|
||||
/// - Complexity: O(1)
|
||||
@available(SwiftStdlib 6.3, *)
|
||||
public func isTriviallyIdentical(to other: Self) -> Bool {
|
||||
self._guts.rawBits == other._guts.rawBits
|
||||
self._guts.isTriviallyIdentical(to: other._guts)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user