SwiftstructFoundation
FloatingPointFormatStyle
struct Foundation.FloatingPointFormatStyle
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolFoundation.FormatStyle
- protocolFoundation.ParseableFormatStyle
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.Hashable
- protocol_StringProcessing.RegexComponent
Members 19
- field
var collection: Foundation.NumberFormatStyleConfiguration.Collection - field
var locale: Foundation.Locale+0x0 - func
consuming(_: String, startingAt: String.Index, in: Range<String.Index>) throws -> (upperBound: String.Index, output: A)? - func
decimalSeparator(strategy: Foundation.NumberFormatStyleConfiguration.DecimalSeparatorDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A> - func
format(A) -> String - func
grouping(Foundation.NumberFormatStyleConfiguration.Grouping) -> Foundation.FloatingPointFormatStyle<A> - func
locale(Foundation.Locale) -> Foundation.FloatingPointFormatStyle<A> - func
notation(Foundation.NumberFormatStyleConfiguration.Notation) -> Foundation.FloatingPointFormatStyle<A> - func
precision(Foundation.NumberFormatStyleConfiguration.Precision) -> Foundation.FloatingPointFormatStyle<A> - func
rounded(rule: FloatingPointRoundingRule, increment: Double?) -> Foundation.FloatingPointFormatStyle<A> - func
scale(Double) -> Foundation.FloatingPointFormatStyle<A> - func
sign(strategy: Foundation.NumberFormatStyleConfiguration.SignDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A> - init
init(locale: Foundation.Locale) -> Foundation.FloatingPointFormatStyle<A> - typealias
typealias FormatInput = A - typealias
typealias FormatOutput = Swift.String - typealias
typealias RegexOutput = A - typealias
typealias Strategy = Foundation.FloatingPointParseStrategy<Foundation.FloatingPointFormatStyle<A>> - var
var attributed: Foundation.FloatingPointFormatStyle<A>.Attributed { get } - var
var parseStrategy: Foundation.FloatingPointParseStrategy<Foundation.FloatingPointFormatStyle<A>> { get }
Header
struct FloatingPointFormatStyle<A> where A: Swift.BinaryFloatingPoint { struct Percent { enum CodingKeys { case locale case collection } var locale: Foundation.Locale var collection: Foundation.NumberFormatStyleConfiguration.Collection init(locale: Foundation.Locale) var attributed: Foundation.FloatingPointFormatStyle<A>.Attributed { get } var parseStrategy: Foundation.FloatingPointParseStrategy<Foundation.FloatingPointFormatStyle<A>.Percent> { get } func decimalSeparator(strategy: Foundation.NumberFormatStyleConfiguration.DecimalSeparatorDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A>.Percent func sign(strategy: Foundation.NumberFormatStyleConfiguration.SignDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A>.Percent func scale(_: Swift.Double) -> Foundation.FloatingPointFormatStyle<A>.Percent func format(_: A) -> Swift.String func locale(_: Foundation.Locale) -> Foundation.FloatingPointFormatStyle<A>.Percent func rounded(rule: Swift.FloatingPointRoundingRule, increment: Swift.Double?) -> Foundation.FloatingPointFormatStyle<A>.Percent func grouping(_: Foundation.NumberFormatStyleConfiguration.Grouping) -> Foundation.FloatingPointFormatStyle<A>.Percent func notation(_: Foundation.NumberFormatStyleConfiguration.Notation) -> Foundation.FloatingPointFormatStyle<A>.Percent func consuming(_: Swift.String, startingAt: Swift.String.Index, in: Swift.Range<Swift.String.Index>) throws -> (upperBound: Swift.String.Index, output: A)? func precision(_: Foundation.NumberFormatStyleConfiguration.Precision) -> Foundation.FloatingPointFormatStyle<A>.Percent } struct Currency { enum CodingKeys { case locale case currencyCode case collection } var locale: Foundation.Locale let currencyCode: Swift.String var collection: Foundation.CurrencyFormatStyleConfiguration.Collection init(code: Swift.String, locale: Foundation.Locale) var attributed: Foundation.FloatingPointFormatStyle<A>.Attributed { get } var parseStrategy: Foundation.FloatingPointParseStrategy<Foundation.FloatingPointFormatStyle<A>.Currency> { get } func presentation(_: Foundation.CurrencyFormatStyleConfiguration.Presentation) -> Foundation.FloatingPointFormatStyle<A>.Currency func decimalSeparator(strategy: Foundation.NumberFormatStyleConfiguration.DecimalSeparatorDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A>.Currency func sign(strategy: Foundation.CurrencyFormatStyleConfiguration.SignDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A>.Currency func scale(_: Swift.Double) -> Foundation.FloatingPointFormatStyle<A>.Currency func format(_: A) -> Swift.String func locale(_: Foundation.Locale) -> Foundation.FloatingPointFormatStyle<A>.Currency func rounded(rule: Swift.FloatingPointRoundingRule, increment: Swift.Double?) -> Foundation.FloatingPointFormatStyle<A>.Currency func grouping(_: Foundation.NumberFormatStyleConfiguration.Grouping) -> Foundation.FloatingPointFormatStyle<A>.Currency func notation(_: Foundation.NumberFormatStyleConfiguration.Notation) -> Foundation.FloatingPointFormatStyle<A>.Currency func consuming(_: Swift.String, startingAt: Swift.String.Index, in: Swift.Range<Swift.String.Index>) throws -> (upperBound: Swift.String.Index, output: A)? func precision(_: Foundation.NumberFormatStyleConfiguration.Precision) -> Foundation.FloatingPointFormatStyle<A>.Currency } struct Attributed { enum CodingKeys { case style } enum Style { enum CodingKeys { case floatingPoint case currency case percent } case floatingPoint(Foundation.FloatingPointFormatStyle<A>) case currency(Foundation.FloatingPointFormatStyle<A>.Currency) case percent(Foundation.FloatingPointFormatStyle<A>.Percent) } var style: Foundation.FloatingPointFormatStyle<A>.Attributed.Style func format(_: A) -> Foundation.AttributedString func locale(_: Foundation.Locale) -> Foundation.FloatingPointFormatStyle<A>.Attributed } enum CodingKeys { case locale case collection } var locale: Foundation.Locale var collection: Foundation.NumberFormatStyleConfiguration.Collection init(locale: Foundation.Locale) var attributed: Foundation.FloatingPointFormatStyle<A>.Attributed { get } var parseStrategy: Foundation.FloatingPointParseStrategy<Foundation.FloatingPointFormatStyle<A>> { get } func decimalSeparator(strategy: Foundation.NumberFormatStyleConfiguration.DecimalSeparatorDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A> func sign(strategy: Foundation.NumberFormatStyleConfiguration.SignDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A> func scale(_: Swift.Double) -> Foundation.FloatingPointFormatStyle<A> func format(_: A) -> Swift.String func locale(_: Foundation.Locale) -> Foundation.FloatingPointFormatStyle<A> func rounded(rule: Swift.FloatingPointRoundingRule, increment: Swift.Double?) -> Foundation.FloatingPointFormatStyle<A> func grouping(_: Foundation.NumberFormatStyleConfiguration.Grouping) -> Foundation.FloatingPointFormatStyle<A> func notation(_: Foundation.NumberFormatStyleConfiguration.Notation) -> Foundation.FloatingPointFormatStyle<A> func consuming(_: Swift.String, startingAt: Swift.String.Index, in: Swift.Range<Swift.String.Index>) throws -> (upperBound: Swift.String.Index, output: A)? func precision(_: Foundation.NumberFormatStyleConfiguration.Precision) -> Foundation.FloatingPointFormatStyle<A> }