LanguageTag
A wrapper around an IETF language tag.
PackageDescription.swift:318LanguageTag.mdstruct LanguageTag
To learn more about the IETF worldwide standard for language tags, see RFC5646.
Creating a Language Tag
init(_:)
init(extendedGraphemeClusterLiteral:)
init(stringLiteral: String
) Creates an instance initialized to the given value.
init(unicodeScalarLiteral:)
init?(rawValue: String
) Creates a new instance with the specified raw value.
var rawValue: String
The corresponding value of the raw type.
Describing a Language Tag
tag
var description: String
A textual representation of the language tag.
Hashing
hash(into:)
hashValue
Operator Functions
!=(_:_:)
Identifying Related Types
ExtendedGraphemeClusterLiteralType
RawValue
StringLiteralType
UnicodeScalarLiteralType
See also
var defaultLocalization: LanguageTag?
The default localization for resources.
Citizens in PackageDescription
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByExtendedGraphemeClusterLiteral
A type that can be initialized with a string literal containing a single extended grapheme cluster.
protocol ExpressibleByStringLiteral
A type that can be initialized with a string literal.
protocol ExpressibleByUnicodeScalarLiteral
A type that can be initialized with a string literal containing a single Unicode scalar value.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
init(extendedGraphemeClusterLiteral: String
) Creates an instance initialized to the given value.
init(unicodeScalarLiteral: String
) Creates an instance initialized to the given value.
Type features
init(extendedGraphemeClusterLiteral: Self.StringLiteralType
) init(unicodeScalarLiteral: Self.ExtendedGraphemeClusterLiteralType
) static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.