Instance Methodswift 6.0.3FoundationInternationalization
grouping(_:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func grouping(_ group: IntegerFormatStyle<Value>.Percent.Configuration.Grouping) -> IntegerFormatStyle<Value>.Percent
func grouping(_ group: IntegerFormatStyle<Value>.Percent.Configuration.Grouping) -> IntegerFormatStyle<Value>.Percent
s30FoundationInternationalization18IntegerFormatStyleV7PercentV8groupingyAEyx_GAA06NumberdE13ConfigurationO8GroupingVF
What are these?4NTHQ
import FoundationInternationalization
struct Percent
struct IntegerFormatStyle<Value> where Value : BinaryInteger
typealias Configuration = NumberFormatStyleConfiguration
struct Grouping
init(from decoder: any Decoder) throws
init(locale: Locale = .autoupdatingCurrent)
var attributed: IntegerFormatStyle<Value>.Attributed { get }
var locale: Locale
var parseStrategy: IntegerParseStrategy<IntegerFormatStyle<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: IntegerFormatStyle<Value>.Percent.Configuration.DecimalSeparatorDisplayStrategy) -> IntegerFormatStyle<Value>.Percent
func format(_ value: Value) -> String
Returns a localized string for the given value in percentage. Supports up to 64-bit signed integer precision. Values not representable by Int64
are clamped.
func locale(_ locale: Locale) -> IntegerFormatStyle<Value>.Percent
func notation(_ notation: IntegerFormatStyle<Value>.Percent.Configuration.Notation) -> IntegerFormatStyle<Value>.Percent
func precision(_ p: IntegerFormatStyle<Value>.Percent.Configuration.Precision) -> IntegerFormatStyle<Value>.Percent
func rounded(rule: IntegerFormatStyle<Value>.Percent.Configuration.RoundingRule = .toNearestOrEven, increment: Int? = nil) -> IntegerFormatStyle<Value>.Percent
func scale(_ multiplicand: Double) -> IntegerFormatStyle<Value>.Percent
func sign(strategy: IntegerFormatStyle<Value>.Percent.Configuration.SignDisplayStrategy) -> IntegerFormatStyle<Value>.Percent
typealias RegexOutput = Value