Instance Propertyswift 6.0.3FoundationInternationalization
locale
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
var locale: Locale
var locale: Locale
s30FoundationInternationalization24FloatingPointFormatStyleV7PercentV6locale0A10Essentials6LocaleVvp
What are these?7L0Y6
import FoundationInternationalization
struct Percent
struct FloatingPointFormatStyle<Value> where Value : BinaryFloatingPoint
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
init(locale: Locale = .autoupdatingCurrent)
var attributed: FloatingPointFormatStyle<Value>.Attributed { get }
var parseStrategy: FloatingPointParseStrategy<FloatingPointFormatStyle<Value>.Percent> { 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>.Percent.Configuration.DecimalSeparatorDisplayStrategy) -> FloatingPointFormatStyle<Value>.Percent
func format(_ value: Value) -> String
func grouping(_ group: FloatingPointFormatStyle<Value>.Percent.Configuration.Grouping) -> FloatingPointFormatStyle<Value>.Percent
func locale(_ locale: Locale) -> FloatingPointFormatStyle<Value>.Percent
func notation(_ notation: FloatingPointFormatStyle<Value>.Percent.Configuration.Notation) -> FloatingPointFormatStyle<Value>.Percent
func precision(_ p: FloatingPointFormatStyle<Value>.Percent.Configuration.Precision) -> FloatingPointFormatStyle<Value>.Percent
func rounded(rule: FloatingPointFormatStyle<Value>.Percent.Configuration.RoundingRule = .toNearestOrEven, increment: Double? = nil) -> FloatingPointFormatStyle<Value>.Percent
func scale(_ multiplicand: Double) -> FloatingPointFormatStyle<Value>.Percent
func sign(strategy: FloatingPointFormatStyle<Value>.Percent.Configuration.SignDisplayStrategy) -> FloatingPointFormatStyle<Value>.Percent
typealias Configuration = NumberFormatStyleConfiguration
typealias RegexOutput = Value