toEnglishNumber method

String toEnglishNumber()

Implementation

String toEnglishNumber() {
  String number = this;
  number = number.replaceAll("۱", "1");
  number = number.replaceAll("۲", "2");
  number = number.replaceAll("۳", "3");
  number = number.replaceAll("۴", "4");
  number = number.replaceAll("۵", "5");
  number = number.replaceAll("۶", "6");
  number = number.replaceAll("۷", "7");
  number = number.replaceAll("۸", "8");
  number = number.replaceAll("۹", "9");
  number = number.replaceAll("۰", "0");
  return number;
}