deburr function

String deburr(
  1. String str
)

Deburrs String by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks.

Implementation

String deburr(String str) => str.isNotEmpty
    ? str
        .replaceAllMapped(helpers.reLatin, _deburrLetter)
        .replaceAll(helpers.reComboMark, '')
    : '';