DigitScript

Numeral script used when rendering digits in localized dates / times.

Each entry holds the ten code points for digits 0..9 in that script. Use String.localizeDigits(script) (in NepaliDateConverter) to convert any Latin-digit substring to the chosen script, and String.toLatinDigits() to go the other way.

Devanagari is shared by Nepali, Hindi, Marathi, Maithili, Bhojpuri, and Newari - picking DEVANAGARI is enough for all of those locales.

Entries

Link copied to clipboard

ASCII 0123456789. Default for NepaliDatePickerLang.ENGLISH.

Link copied to clipboard

Devanagari ०१२३४५६७८९ (U+0966..U+096F). Default for NepaliDatePickerLang.NEPALI.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.