Skip to content

Type Method_StringProcessing

localizedDoublePercentage(locale:)

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
Creates a regex component to match a localized string representing a percentage and capture it as a Double.
static func localizedDoublePercentage(locale: Locale) -> Self

Parameters

locale

The locale with which the string is formatted.

Return Value

A RegexComponent to match a localized percentage string.