identifier
TypeScriptget identifier(): stringSwift declarationvar identifier: String { get set }The collation's BCP 47 identifier.
struct · iOS 16.0+ · SDK 27.1
struct CollationA type that represents the string sort order used by the locale.
get identifier(): stringSwift declarationvar identifier: String { get set }The collation's BCP 47 identifier.
set identifier(value: string)Swift declarationvar identifier: String { get set }The collation's BCP 47 identifier.
static get searchRules(): Locale_CollationSwift declarationstatic let searchRules: Locale.CollationA collation used for string search. Use this collation only for determining whether to consider two strings as equivalent. Using this collation may modify the string for search purposes. For example, this collation suppresses the contractions in Thai and Lao. Don't use this collation to determine the relative order of two strings.
static initStringLiteral(value: string): Locale_CollationSwift declarationinit(stringLiteral value: String)Creates a collation from a BCP 47 identifier as a string literal. - Parameter value: The BCP 47 collation identifier, like `standard` for a language's standard ordering, or `phonetic` for phonetic ordering.
get debugDescription(): stringSwift declarationvar debugDescription: String { get }A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.
static availableCollationsFor(language: Locale_Language): Array<Locale_Collation>Swift declarationstatic func availableCollations(for language: Locale.Language) -> [Locale.Collation]A list of available collations for the specified `language` in the order that it is most likely to make a difference.
static get availableCollations(): Array<Locale_Collation>Swift declarationstatic var availableCollations: [Locale.Collation] { get }A list of available collations on the system.
static get standard(): Locale_CollationSwift declarationstatic let standard: Locale.CollationA collation that provides the default ordering for each language.
static init(identifier: string): Locale_CollationSwift declarationinit(_ identifier: String)Creates a collation from a BCP 47 identifier. - Parameter identifier: The BCP 47 collation identifier, like `standard` for a language's standard ordering, or `phonetic` for phonetic ordering. The complete list of collation identifiers can be found [here](https://github.com/unicode-org/cldr/blob/latest/common/bcp47/collation.xml), under the key named "co".
No declarations were skipped in this snapshot.