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
تبدیل اعداد انگلیسی به فارسی در متن -
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
تبدیل متن فارسی به فرمت استاندارد (اصلاح فاصلهها و کاراکترها) -
toDoubleFormatted(
) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a double and format it with two decimal places -
toNumberFormatted(
) → String -
Available on String, provided by the StringNumberFormatter extension
Attempts to parse the string to a number and format it