com.bahmanm.persianutils
Members list
Type members
Classlikes
Base trait for date representations that can be converted across calendar systems.
Base trait for date representations that can be converted across calendar systems.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class GregorianDateclass PersianDate
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DateConverter.type
Converts date representations into Persian verbal expressions.
Converts date representations into Persian verbal expressions.
Example:
DateToWord(PersianDate(1361, 3, 3)) // "سوم خرداد یک هزار و سیصد و شصت و یک"
DateToWord(GregorianDate(1992, 12, 3)) // "سوم دسامبر یک هزار و نهصد و نود و دو"
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DateToWord.type
Represents a date in the Gregorian calendar.
Represents a date in the Gregorian calendar.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ConvertibleDateclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GregorianDate.type
Attributes
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
NumToWord.type
Represents a date in the Persian (Solar Hijri / Jalali) calendar.
Represents a date in the Persian (Solar Hijri / Jalali) calendar.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ConvertibleDateclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PersianDate.type
Configuration options for TextSanitiser.
Configuration options for TextSanitiser.
Value parameters
- cleanSpacing
-
cleans and canonicalises whitespace, non-breaking spaces, and zero-width non-joiners
- removeDiacritics
-
strips Arabic Tashkeel (harakat) short vowel diacritics
- removeTatweel
-
strips Kashida / Tatweel elongation characters
- standardiseCharacters
-
replaces Arabic and non-standard character variants with standard Persian characters
- standardiseDigits
-
converts Western ASCII and Eastern Arabic digits into Persian digits
- standardisePunctuation
-
normalises punctuation symbols into Persian equivalents
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Utility for sanitising and normalising Persian text.
Utility for sanitising and normalising Persian text.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TextSanitiser.type