Instance Methodswift 6.0.3FoundationInternationalization->Swift
hash(into:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func hash(into hasher: inout Hasher)
func hash(into hasher: inout Hasher)
sSS30FoundationInternationalizationE18StandardComparatorV4hash4intoys6HasherVz_tF
What are these?17AXR
import Swift
import FoundationInternationalization
struct StandardComparator
Compares String
s using one of a fixed set of standard comparison algorithms.
@frozen struct String
A Unicode string value that is a collection of characters.
@frozen struct Hasher
The universal hash function used by Set
and Dictionary
.
init(_ base: String.StandardComparator, order: SortOrder = .forward)
Create a StandardComparator
from the given StandardComparator
with the given new order
.
init(from decoder: any Decoder) throws
static let lexical: String.StandardComparator
Compares String
s lexically.
var order: SortOrder
func compare(_ lhs: String, _ rhs: String) -> ComparisonResult
func encode(to encoder: any Encoder) throws
typealias Compared = String