SwiftstructFoundation

struct Foundation.FloatingPointFormatStyle

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 19

  1. fieldvar collection: Foundation.NumberFormatStyleConfiguration.Collection
  2. fieldvar locale: Foundation.Locale+0x0
  3. funcconsuming(_: String, startingAt: String.Index, in: Range<String.Index>) throws -> (upperBound: String.Index, output: A)?
  4. funcdecimalSeparator(strategy: Foundation.NumberFormatStyleConfiguration.DecimalSeparatorDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A>
  5. funcformat(A) -> String
  6. funcgrouping(Foundation.NumberFormatStyleConfiguration.Grouping) -> Foundation.FloatingPointFormatStyle<A>
  7. funclocale(Foundation.Locale) -> Foundation.FloatingPointFormatStyle<A>
  8. funcnotation(Foundation.NumberFormatStyleConfiguration.Notation) -> Foundation.FloatingPointFormatStyle<A>
  9. funcprecision(Foundation.NumberFormatStyleConfiguration.Precision) -> Foundation.FloatingPointFormatStyle<A>
  10. funcrounded(rule: FloatingPointRoundingRule, increment: Double?) -> Foundation.FloatingPointFormatStyle<A>
  11. funcscale(Double) -> Foundation.FloatingPointFormatStyle<A>
  12. funcsign(strategy: Foundation.NumberFormatStyleConfiguration.SignDisplayStrategy) -> Foundation.FloatingPointFormatStyle<A>
  13. initinit(locale: Foundation.Locale) -> Foundation.FloatingPointFormatStyle<A>
  14. typealiastypealias FormatInput = A
  15. typealiastypealias FormatOutput = Swift.String
  16. typealiastypealias RegexOutput = A
  17. typealiastypealias Strategy = Foundation.FloatingPointParseStrategy<Foundation.FloatingPointFormatStyle<A>>
  18. varvar attributed: Foundation.FloatingPointFormatStyle<A>.Attributed { get }
  19. varvar parseStrategy: Foundation.FloatingPointParseStrategy<Foundation.FloatingPointFormatStyle<A>> { get }
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>
}