init(_:strategy:)
Creates a person name components object from a given string by applying the provided parsing strategy.
Declaration
init<S>(_ value: S.ParseInput, strategy: S) throws where S : ParseStrategy, S.ParseOutput == PersonNameComponentsParameters
- value:
A string to parse into person name components.
- strategy:
The strategy used to parse a string into person name components.
Discussion
This method uses a combination of locale rules and the provided parse strategy object to determine the most likely name components for a particular string representation. Parsing name components from a representation created for an existing name components object may not produce equivalent results.