StringNumberFormatter extension
Converts a string to a formatted number representation
- on
Methods
-
convertDigitsToEnglish(
) → String -
Available on String, provided by the StringNumberFormatter extension
تبدیل اعداد فارسی به انگلیسی در متن -
convertDigitsToPersian(
) → String -
Available on String, provided by the StringNumberFormatter extension
تبدیل اعداد انگلیسی به فارسی در متن -
intlToCompactCurrencyFormatted(
{String? locale, String? symbol, int? decimalDigits, String? name}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a number and format it as compact currency -
intlToCompactFormatted(
{String? locale}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a number and format it in compact form -
intlToCompactLongFormatted(
{String? locale}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a number and format it in compact long form -
intlToCurrencyFormatted(
{String? locale, String? symbol, int? decimalDigits, String? name}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a number and format it as currency with custom locale -
intlToDateFormatted(
String pattern, {String? locale}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string as a date and format it using intl DateFormat -
intlToDecimalFormatted(
{String? locale, int? decimalDigits}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a number and format it with custom decimal digits -
intlToDoubleFormatted(
) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a double and format it with two decimal places using intl NumberFormat -
intlToDoubleSimpleCurrencyFormatted(
int? decimalDigits) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a double and format it as simple currency -
intlToFullDateFormatted(
{String? locale}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string as a date and format it to a full date string -
intlToLocalizedDateFormatted(
{String? locale}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string as a date and format it to a localized date string -
intlToNumberFormatted(
) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a number and format it using intl NumberFormat -
intlToPercentageFormatted(
{String? locale, int? decimalDigits}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a number and format it as percentage -
intlToRelativeTimeFormatted(
{String? locale}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string as a date and format it to a relative time string -
intlToScientificFormatted(
{String? locale}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a number and format it in scientific notation -
intlToTimeFormatted(
{String? locale, bool use24Hour = false}) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string as a date and format it to a time string -
isValidIranianNationalCode(
) → bool -
Available on String, provided by the StringNumberFormatter extension
اعتبارسنجی کد ملی ایرانی -
isValidIranianSheba(
) → bool -
Available on String, provided by the StringNumberFormatter extension
اعتبارسنجی شماره شبا (IBAN) ایرانی -
standardizePersianText(
) → String -
Available on String, provided by the StringNumberFormatter extension
تبدیل متن فارسی به فرمت استاندارد (اصلاح فاصلهها و کاراکترها)