Instance Methodswift 6.0.3FoundationInternationalization
locale(_:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func locale(_ locale: Locale) -> IntegerFormatStyle<Value>.Attributed
func locale(_ locale: Locale) -> IntegerFormatStyle<Value>.Attributed
s30FoundationInternationalization18IntegerFormatStyleV10AttributedV6localeyAEyx_G0A10Essentials6LocaleVF
What are these?7BZV7
import FoundationInternationalization
struct Attributed
struct IntegerFormatStyle<Value> where Value : BinaryInteger
struct Locale
Locale
encapsulates information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted.
init(from decoder: any Decoder) throws
func format(_ value: Value) -> AttributedString
Returns an attributed string with NumberFormatAttributes.SymbolAttribute
and NumberFormatAttributes.NumberPartAttribute
. Values not representable by Int64
are clamped.