withPersianLetters method

String withPersianLetters()

Replaces ك with ک, and ي with ی.

Implementation

String withPersianLetters() {
  if (isEmpty) {
    return this;
  }

  var x = this;
  x = x.replaceAll('\u064A', '\u06CC');
  x = x.replaceAll('\u0643', '\u06A9');

  return x;
}