Initializerswift 6.0.3FoundationInternationalization
init(from:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s30FoundationInternationalization24FloatingPointFormatStyleV8CurrencyV4fromAEyx_Gs7Decoder_p_tKcfc
What are these?52OHM
import FoundationInternationalization
struct Currency
struct FloatingPointFormatStyle<Value> where Value : BinaryFloatingPoint
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(code: String, locale: Locale = .autoupdatingCurrent)
var attributed: FloatingPointFormatStyle<Value>.Attributed { get }
let currencyCode: String
var locale: Locale
var parseStrategy: FloatingPointParseStrategy<FloatingPointFormatStyle<Value>.Currency> { get }
func consuming(_ input: String, startingAt index: String.Index, in bounds: Range<String.Index>) throws -> (upperBound: String.Index, output: Value)?
func decimalSeparator(strategy: FloatingPointFormatStyle<Value>.Currency.Configuration.DecimalSeparatorDisplayStrategy) -> FloatingPointFormatStyle<Value>.Currency
func format(_ value: Value) -> String
func grouping(_ group: FloatingPointFormatStyle<Value>.Currency.Configuration.Grouping) -> FloatingPointFormatStyle<Value>.Currency
func locale(_ locale: Locale) -> FloatingPointFormatStyle<Value>.Currency
func notation(_ notation: FloatingPointFormatStyle<Value>.Currency.Configuration.Notation) -> FloatingPointFormatStyle<Value>.Currency
Modifies the format style to use the specified notation.
func precision(_ p: FloatingPointFormatStyle<Value>.Currency.Configuration.Precision) -> FloatingPointFormatStyle<Value>.Currency
func presentation(_ p: FloatingPointFormatStyle<Value>.Currency.Configuration.Presentation) -> FloatingPointFormatStyle<Value>.Currency
func rounded(rule: FloatingPointFormatStyle<Value>.Currency.Configuration.RoundingRule = .toNearestOrEven, increment: Double? = nil) -> FloatingPointFormatStyle<Value>.Currency
func scale(_ multiplicand: Double) -> FloatingPointFormatStyle<Value>.Currency
func sign(strategy: FloatingPointFormatStyle<Value>.Currency.Configuration.SignDisplayStrategy) -> FloatingPointFormatStyle<Value>.Currency
typealias Configuration = CurrencyFormatStyleConfiguration
typealias RegexOutput = Value