deburr property

String deburr

Converts string from Latin-1 to normal basic latin letters

'hey kàwàl'.deburr; // hey kawal

Implementation

String get deburr {
  return replaceAllMapped(reLatin, (match) {
    var value = '', word = match[0] ?? '';
    for (var index = 0; index < word.length; index++) {
      value += deburredLetters[word[index]] ?? word[index];
    }
    return value;
  }).replaceAll(reComboMark, '');
}