Locale
識別子によるロケールの作成
init(identifier: String)
コンポーネントによるロケールの作成
init(identifier: String)
struct Locale.Components
ロケールコンポーネントインスタンスの作成
init(identifier: String)
init(languageCode: Locale.LanguageCode?, script: Locale.Script?, languageRegion: Locale.Region?)
init(locale: Locale)
言語コンポーネントの指定
var languageComponents: Locale.Language.Components
日付と時刻のコンポーネントの指定
var calendar: Calendar.Identifier?
enum Calendar.Identifier
識別子 (ID)
case buddhist
case chinese
case coptic
case ethiopicAmeteAlem
case ethiopicAmeteMihret
case gregorian
case hebrew
case indian
case islamic
case islamicCivil
case islamicTabular
case islamicUmmAlQura
case iso8601
case japanese
case persian
case republicOfChina
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
カレンダー識別子の比較
static func == (Calendar.Identifier, Calendar.Identifier) -> Bool
static func != (Calendar.Identifier, Calendar.Identifier) -> Bool
インスタンスプロパティ
var debugDescription: String
var firstDayOfWeek: Locale.Weekday?
enum Locale.Weekday
曜日の作成
init?(rawValue: String)
定義された曜日の使用
case monday
case tuesday
case wednesday
case thursday
case friday
case saturday
case sunday
曜日のプロパティを調べる
var rawValue: String
typealias Locale.Weekday.RawValue
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
曜日の比較
static func != (Locale.Weekday, Locale.Weekday) -> Bool
var hourCycle: Locale.HourCycle?
enum Locale.HourCycle
時間サイクルの作成
init?(rawValue: String)
定義された時間サイクルの使用
case zeroToEleven
case oneToTwelve
case zeroToTwentyThree
case oneToTwentyFour
時間サイクルプロパティを調べる
var rawValue: String
typealias Locale.HourCycle.RawValue
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
時間サイクルの比較
static func != (Locale.HourCycle, Locale.HourCycle) -> Bool
var timeZone: TimeZone?
var currency: Locale.Currency?
struct Locale.Currency
通貨インスタンスの作成
init(String)
init(stringLiteral: String)
typealias Locale.Currency.StringLiteralType
init(extendedGraphemeClusterLiteral: String)
typealias Locale.Currency.ExtendedGraphemeClusterLiteralType
init(unicodeScalarLiteral: String)
typealias Locale.Currency.UnicodeScalarLiteralType
通貨プロパティを調べる
var identifier: String
var isISOCurrency: Bool
共通通貨の使用
static var isoCurrencies: [Locale.Currency]
static let unknown: Locale.Currency
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
通貨の比較
static func == (Locale.Currency, Locale.Currency) -> Bool
static func != (Locale.Currency, Locale.Currency) -> Bool
インスタンスプロパティ
var debugDescription: String
var measurementSystem: Locale.MeasurementSystem?
struct Locale.MeasurementSystem
測定システムインスタンスの作成
init(String)
init(stringLiteral: String)
typealias Locale.MeasurementSystem.StringLiteralType
init(extendedGraphemeClusterLiteral: String)
typealias Locale.MeasurementSystem.ExtendedGraphemeClusterLiteralType
init(unicodeScalarLiteral: String)
typealias Locale.MeasurementSystem.UnicodeScalarLiteralType
測定システムプロパティの検査
var identifier: String
共通した測定システムの使用
static var measurementSystems: [Locale.MeasurementSystem]
static let metric: Locale.MeasurementSystem
static let uk: Locale.MeasurementSystem
static let us: Locale.MeasurementSystem
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
測定システムの比較
static func == (Locale.MeasurementSystem, Locale.MeasurementSystem) -> Bool
static func != (Locale.MeasurementSystem, Locale.MeasurementSystem) -> Bool
インスタンスプロパティ
var debugDescription: String
var numberingSystem: Locale.NumberingSystem?
var availableNumberingSystems: [Locale.NumberingSystem]
struct Locale.NumberingSystem
数え方システムインスタンスの作成
init(String)
init(stringLiteral: String)
typealias Locale.NumberingSystem.StringLiteralType
init(extendedGraphemeClusterLiteral: String)
typealias Locale.NumberingSystem.ExtendedGraphemeClusterLiteralType
init(unicodeScalarLiteral: String)
typealias Locale.NumberingSystem.UnicodeScalarLiteralType
数え方システムのプロパティの検査
var identifier: String
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
数え方システムの比較
static func == (Locale.NumberingSystem, Locale.NumberingSystem) -> Bool
static func != (Locale.NumberingSystem, Locale.NumberingSystem) -> Bool
インスタンスプロパティ
var debugDescription: String
型プロパティ
static var availableNumberingSystems: [Locale.NumberingSystem]
var collation: Locale.Collation
struct Locale.Collation
struct Locale.Language.Components
言語コンポーネントインスタンスの作成
init(identifier: String)
init(language: Locale.Language)
init(languageCode: Locale.LanguageCode?, script: Locale.Script?, region: Locale.Region?)
言語コンポーネントのプロパティを調べる
var languageCode: Locale.LanguageCode?
struct Locale.LanguageCode
var region: Locale.Region?
struct Locale.Region
var script: Locale.Script?
struct Locale.Script
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
言語コンポーネントの比較
static func == (Locale.Language.Components, Locale.Language.Components) -> Bool
static func != (Locale.Language.Components, Locale.Language.Components) -> Bool
init(languageCode: Locale.LanguageCode?, script: Locale.Script?, languageRegion: Locale.Region?)
init(languageComponents: Locale.Language.Components)
ユーザのロケールを取得する
static var autoupdatingCurrent: Locale
static var current: Locale
既知の ID とコードを取得
static var availableIdentifiers: [String]
static var isoRegionCodes: [String]
  廃止  
static var isoLanguageCodes: [String]
  廃止  
static var isoCurrencyCodes: [String]
  廃止  
static var commonISOCurrencyCodes: [String]
ID 同士間の変換
static func canonicalIdentifier(from: String) -> String
  廃止  
static func components(fromIdentifier: String) -> [String : String]
  廃止  
static func identifier(fromComponents: [String : String]) -> String
static func identifier(Locale.IdentifierType, from: String) -> String
enum Locale.IdentifierType
標準の識別子型
case icu
case cldr
case bcp47
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
識別子型の比較
static func == (Locale.IdentifierType, Locale.IdentifierType) -> Bool
static func != (Locale.IdentifierType, Locale.IdentifierType) -> Bool
static func canonicalLanguageIdentifier(from: String) -> String
static func identifier(fromWindowsLocaleCode: Int) -> String?
static func windowsLocaleCode(fromIdentifier: String) -> Int?
struct Locale.LanguageCode
言語コードの作成
init(String)
init(stringLiteral: String)
typealias Locale.LanguageCode.StringLiteralType
init(extendedGraphemeClusterLiteral: String)
typealias Locale.LanguageCode.ExtendedGraphemeClusterLiteralType
init(unicodeScalarLiteral: String)
typealias Locale.LanguageCode.UnicodeScalarLiteralType
言語コードプロパティを調べる
var identifier: String
var isISOLanguage: Bool
ISO 定義の言語コードの使用
static var isoLanguageCodes: [Locale.LanguageCode]
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
言語コードの比較
static func == (Locale.LanguageCode, Locale.LanguageCode) -> Bool
static func != (Locale.LanguageCode, Locale.LanguageCode) -> Bool
インスタンスプロパティ
var debugDescription: String
型プロパティ
static var ainu: Locale.LanguageCode
static var albanian: Locale.LanguageCode
static var amharic: Locale.LanguageCode
static var apacheWestern: Locale.LanguageCode
static var arabic: Locale.LanguageCode
static var armenian: Locale.LanguageCode
static var assamese: Locale.LanguageCode
static var assyrian: Locale.LanguageCode
static var azerbaijani: Locale.LanguageCode
static var bangla: Locale.LanguageCode
static var belarusian: Locale.LanguageCode
static var bodo: Locale.LanguageCode
static var bulgarian: Locale.LanguageCode
static var burmese: Locale.LanguageCode
static var cantonese: Locale.LanguageCode
static var catalan: Locale.LanguageCode
static var cherokee: Locale.LanguageCode
static var chinese: Locale.LanguageCode
static var croatian: Locale.LanguageCode
static var czech: Locale.LanguageCode
static var danish: Locale.LanguageCode
static var dhivehi: Locale.LanguageCode
static var dogri: Locale.LanguageCode
static var dutch: Locale.LanguageCode
static var dzongkha: Locale.LanguageCode
static var english: Locale.LanguageCode
static var estonian: Locale.LanguageCode
static var faroese: Locale.LanguageCode
static var finnish: Locale.LanguageCode
static var french: Locale.LanguageCode
static var fula: Locale.LanguageCode
static var georgian: Locale.LanguageCode
static var german: Locale.LanguageCode
static var greek: Locale.LanguageCode
static var gujarati: Locale.LanguageCode
static var hawaiian: Locale.LanguageCode
static var hebrew: Locale.LanguageCode
static var hindi: Locale.LanguageCode
static var hungarian: Locale.LanguageCode
static var icelandic: Locale.LanguageCode
static var igbo: Locale.LanguageCode
static var indonesian: Locale.LanguageCode
static var irish: Locale.LanguageCode
static var italian: Locale.LanguageCode
static var japanese: Locale.LanguageCode
static var kannada: Locale.LanguageCode
static var kashmiri: Locale.LanguageCode
static var kazakh: Locale.LanguageCode
static var khmer: Locale.LanguageCode
static var konkani: Locale.LanguageCode
static var korean: Locale.LanguageCode
static var kurdish: Locale.LanguageCode
static var kurdishSorani: Locale.LanguageCode
static var kyrgyz: Locale.LanguageCode
static var lao: Locale.LanguageCode
static var latvian: Locale.LanguageCode
static var lithuanian: Locale.LanguageCode
static var macedonian: Locale.LanguageCode
static var maithili: Locale.LanguageCode
static var malay: Locale.LanguageCode
static var malayalam: Locale.LanguageCode
static var maltese: Locale.LanguageCode
static var manipuri: Locale.LanguageCode
static var marathi: Locale.LanguageCode
static var mongolian: Locale.LanguageCode
static let multiple: Locale.LanguageCode
static var māori: Locale.LanguageCode
static var navajo: Locale.LanguageCode
static var nepali: Locale.LanguageCode
static var norwegian: Locale.LanguageCode
static var norwegianBokmål: Locale.LanguageCode
static var norwegianNynorsk: Locale.LanguageCode
static var odia: Locale.LanguageCode
static var pashto: Locale.LanguageCode
static var persian: Locale.LanguageCode
static var polish: Locale.LanguageCode
static var portuguese: Locale.LanguageCode
static var punjabi: Locale.LanguageCode
static var rohingya: Locale.LanguageCode
static var romanian: Locale.LanguageCode
static var russian: Locale.LanguageCode
static var samoan: Locale.LanguageCode
static var sanskrit: Locale.LanguageCode
static var santali: Locale.LanguageCode
static var serbian: Locale.LanguageCode
static var sindhi: Locale.LanguageCode
static var sinhala: Locale.LanguageCode
static var slovak: Locale.LanguageCode
static var slovenian: Locale.LanguageCode
static var spanish: Locale.LanguageCode
static var swahili: Locale.LanguageCode
static var swedish: Locale.LanguageCode
static var tagalog: Locale.LanguageCode
static var tajik: Locale.LanguageCode
static var tamil: Locale.LanguageCode
static var telugu: Locale.LanguageCode
static var thai: Locale.LanguageCode
static var tibetan: Locale.LanguageCode
static var tongan: Locale.LanguageCode
static var turkish: Locale.LanguageCode
static var turkmen: Locale.LanguageCode
static var ukrainian: Locale.LanguageCode
static let unavailable: Locale.LanguageCode
static let uncoded: Locale.LanguageCode
static let unidentified: Locale.LanguageCode
static var urdu: Locale.LanguageCode
static var uyghur: Locale.LanguageCode
static var uzbek: Locale.LanguageCode
static var vietnamese: Locale.LanguageCode
static var welsh: Locale.LanguageCode
static var yiddish: Locale.LanguageCode
インスタンスメソッド
func identifier(Locale.LanguageCode.IdentifierType) -> String?
列挙型
enum Locale.LanguageCode.IdentifierType
var region: Locale.Region?
struct Locale.Region
地域コンポーネントを取得
var region: Locale.Region?
var subdivision: Locale.Subdivision?
struct Locale.Subdivision
var variant: Locale.Variant?
struct Locale.Variant
バリアントの作成
init(String)
init(stringLiteral: String)
typealias Locale.Variant.StringLiteralType
init(extendedGraphemeClusterLiteral: String)
typealias Locale.Variant.ExtendedGraphemeClusterLiteralType
init(unicodeScalarLiteral: String)
typealias Locale.Variant.UnicodeScalarLiteralType
バリアントプロパティを調べる
var identifier: String
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
バリアントの比較
static func == (Locale.Variant, Locale.Variant) -> Bool
static func != (Locale.Variant, Locale.Variant) -> Bool
インスタンスプロパティ
var debugDescription: String
型プロパティ
static let posix: Locale.Variant
var collation: Locale.Collation
struct Locale.Collation
照合 (collation) の作成
init(String)
init(stringLiteral: String)
typealias Locale.Collation.StringLiteralType
init(extendedGraphemeClusterLiteral: String)
typealias Locale.Collation.ExtendedGraphemeClusterLiteralType
init(unicodeScalarLiteral: String)
typealias Locale.Collation.UnicodeScalarLiteralType
照合プロパティを調べる
var identifier: String
特別な目的の照合の使用
static let standard: Locale.Collation
static let searchRules: Locale.Collation
コード化と復号化
func encode(to: any Encoder)
init(from: any Decoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
照合の比較
static func == (Locale.Collation, Locale.Collation) -> Bool
static func != (Locale.Collation, Locale.Collation) -> Bool
インスタンスプロパティ
var debugDescription: String
型プロパティ
static var availableCollations: [Locale.Collation]
型メソッド
<
static func availableCollations(for: Locale.Language) -> [Locale.Collation]
<b>ロケールに関する情報を取得
var identifier: String
func identifier(Locale.IdentifierType) -> String
enum Locale.IdentifierType
var calendar: Calendar
var regionCode: String?   廃止  
var languageCode: String?   廃止  
var scriptCode: String?   廃止  
var variantCode: String?   廃止  
var exemplarCharacterSet: CharacterSet?
var collationIdentifier: String?   廃止  
var collatorIdentifier: String?
var usesMetricSystem: Bool   廃止  
var decimalSeparator: String?
var groupingSeparator: String?
var currencyCode: String?   廃止  
var currencySymbol: String?
var quotationBeginDelimiter: String?
var quotationEndDelimiter: String?
var alternateQuotationBeginDelimiter: String?
var alternateQuotationEndDelimiter: String?
ロケールに関する表示情報の取得
func localizedString(for: Calendar.Identifier) -> String?
func localizedString(forCollationIdentifier: String) -> String?
func localizedString(forCollatorIdentifier: String) -> String?
func localizedString(forCurrencyCode: String) -> String?
func localizedString(forIdentifier: String) -> String?
func localizedString(forLanguageCode: String) -> String?
func localizedString(forRegionCode: String) -> String?
func localizedString(forScriptCode: String) -> String?
func localizedString(forVariantCode: String) -> String?
ユーザの優先言語の取得
static var preferredLanguages: [String]
言語の行と文字の方向の取得
static func characterDirection(forLanguage: String) -> Locale.LanguageDirection   廃止  
static func lineDirection(forLanguage: String) -> Locale.LanguageDirection   廃止  
typealias Locale.LanguageDirection
enum NSLocale.LanguageDirection
定数
case unknown
case leftToRight
case rightToLeft
case topToBottom
case bottomToTop
ロケールの比較
static func == (Locale, Locale) -> Bool
static func != (Locale, Locale) -> Bool
ロケールの説明
var description: String
var debugDescription: String
var customMirror: Mirror
var hashValue: Int
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
func hash(into: inout Hasher)
参照型の使用
class NSLocale
typealias Locale.ReferenceType
LosslessStringConvertible
イニシャライザ
init?(String)
init<T>(T)
init?(String)
var script: Locale.Script?
struct Locale.Script
スクリプト (script) の作成
init(String)
init(stringLiteral: String)
typealias Locale.Script.StringLiteralType
init(extendedGraphemeClusterLiteral: String)
typealias Locale.Script.ExtendedGraphemeClusterLiteralType
init(unicodeScalarLiteral: String)
typealias Locale.Script.UnicodeScalarLiteralType
スクリプトのプロパティを調べる
var identifier: String
定義されたスクリプトの使用
static let unknown: Locale.Script
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
スクリプトの比較
static func == (Locale.Script, Locale.Script) -> Bool
static func != (Locale.Script, Locale.Script) -> Bool
インスタンスプロパティ
var debugDescription: String
var isISOScript: Bool
型プロパティ
static var adlam: Locale.Script
中略: 詳しくは こちら をご覧ください。
static var tibetan: Locale.Script
Locale.Language
言語の作成
init(identifier: String)
init(components: Locale.Language.Components)
struct Locale.Language.Components
init(languageCode: Locale.LanguageCode?, script: Locale.Script?, region: Locale.Region?)
言語のプロパティを調べる
var languageCode: Locale.LanguageCode?
struct Locale.LanguageCode
var region: Locale.Region?
struct Locale.Region
var script: Locale.Script?
struct Locale.Script
var characterDirection: Locale.LanguageDirection
typealias Locale.LanguageDirection
言語関連を調べる
var parent: Locale.Language?
func hasCommonParent(with: Locale.Language) -> Bool
func isEquivalent(to: Locale.Language) -> Bool
システム言語の使用
static var systemLanguages: [Locale.Language]
コード化と復号化
init(from: any Decoder)
func encode(to: any Encoder)
ハッシュ化
var hashValue: Int
func hash(into: inout Hasher)
言語の比較
static func == (Locale.Language, Locale.Language) -> Bool
static func != (Locale.Language, Locale.Language) -> Bool
var locale: Locale
リソースプロパティにアクセス
let key: String
let defaultValue: String.LocalizationValue
let table: String?
var bundle: LocalizedStringResource.BundleDescription
enum LocalizedStringResource.BundleDescription
struct AttributedString.LocalizationOptions
イニシャライザ
init()
インスタンスプロパティ
var applyReplacementIndexAttribute: Bool
var concepts: [InflectionConcept]?
var replacements: [any CVarArg]?
static var current: Locale
static var autoupdatingCurrent: Locale
M
N
O
P
Q
R
S
T
U
V
W
XYZ