Returns a dictionary containing the result from parsing a locale ID consisting of language, script, country, variant, and keyword/value pairs.
- iOS 2.0+
- macOS 10.4+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
- Core Foundation
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The locale ID to be used when creating the locale dictionary.
A dictionary containing the result from parsing a locale ID consisting of language, script, country, variant, and keyword/value pairs. Returns
NULL if there was a problem creating the object. Ownership follows the The Create Rule.
The dictionary keys are the constant CFString objects that correspond to the locale ID components; the values correspond to constants where available. For example: the string "en_US@calendar=japanese" yields a dictionary with three entries:
k. See also