localizedInteger(locale:)

Creates a regex component to match a localized integer string and capture it as a Int.

iOS
16.0+
macOS
13.0+
tvOS
16.0+
watchOS
9.0+
static func localizedInteger(locale: Locale) -> Self

Parameters

locale

The locale with which the string is formatted.

Returns

A RegexComponent to match a localized integer string.