withEnglishNumbers method
Replaces any number with English numbers.
Implementation
String withEnglishNumbers() {
if (isEmpty) {
return this;
}
var x = this;
x = x.replaceAll('\u06F0', '0');
x = x.replaceAll('\u06F1', '1');
x = x.replaceAll('\u06F2', '2');
x = x.replaceAll('\u06F3', '3');
x = x.replaceAll('\u06F4', '4');
x = x.replaceAll('\u06F5', '5');
x = x.replaceAll('\u06F6', '6');
x = x.replaceAll('\u06F7', '7');
x = x.replaceAll('\u06F8', '8');
x = x.replaceAll('\u06F9', '9');
x = x.replaceAll('\u0660', '0');
x = x.replaceAll('\u0661', '1');
x = x.replaceAll('\u0662', '2');
x = x.replaceAll('\u0663', '3');
x = x.replaceAll('\u0664', '4');
x = x.replaceAll('\u0665', '5');
x = x.replaceAll('\u0666', '6');
x = x.replaceAll('\u0667', '7');
x = x.replaceAll('\u0668', '8');
x = x.replaceAll('\u0669', '9');
return x;
}