Instance Methodswift 6.0.3FoundationInternationalization
locale(_:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func locale(_ locale: Locale) -> IntegerFormatStyle<Value>
func locale(_ locale: Locale) -> IntegerFormatStyle<Value>
s30FoundationInternationalization18IntegerFormatStyleV6localeyACyxG0A10Essentials6LocaleVF
What are these?8BKI8
where Value:BinaryInteger
import FoundationInternationalization
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.
protocol BinaryInteger : CustomStringConvertible, Hashable, Numeric, Strideable where Self.Magnitude : BinaryInteger, Self.Magnitude == Self.Magnitude.Magnitude
An integer type with a binary representation.
var parseStrategy: IntegerParseStrategy<IntegerFormatStyle<Value>> { get }
func consuming(_ input: String, startingAt index: String.Index, in bounds: Range<String.Index>) throws -> (upperBound: String.Index, output: Value)?
func format(_ value: Value) -> String
Returns a localized string for the given value. Supports up to 64-bit signed integer precision. Values not representable by Int64
are clamped.
struct Attributed
struct Currency
struct Percent
typealias RegexOutput = Value