DigitsConverter class

A utility class for converting digits between different numeral systems فئة مساعدة لتحويل الأرقام بين أنظمة الترقيم المختلفة

Constructors

DigitsConverter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

convertNumberToLocale(int? number, String locale) String
Converts a number to the specified locale's numeral system يحول رقماً إلى نظام الترقيم الخاص باللغة المحددة
convertStringToLocale(String text, String locale) String
Converts a string containing digits to the specified locale يحول نصاً يحتوي على أرقام إلى اللغة المحددة
convertWesternNumberToEastern(int? easternNumber) String
Legacy method for Eastern Arabic conversion (backward compatibility) طريقة قديمة لتحويل العربية الشرقية (للتوافق مع الإصدارات السابقة)
getSampleDigits(String locale) String
Gets sample digits for a specific locale (0-9) يحصل على عينة من الأرقام للغة محددة (0-9)
getSupportedLocales() List<String>
Gets all supported locales for digit conversion يحصل على جميع اللغات المدعومة لتحويل الأرقام
isLocaleSupported(String locale) bool
Checks if a locale is supported for digit conversion يتحقق من دعم لغة معينة لتحويل الأرقام