normalize static method
Implementation
static String normalize(String text) {
if (text.isEmpty) return text;
final String unfolded = unfoldPresentationForms(text);
final StringBuffer buffer = StringBuffer();
for (final int code in unfolded.runes) {
final String character = String.fromCharCode(code);
if (_stripped.contains(character)) continue;
final String? folded = _letterFolds[character];
buffer.write(folded ?? character);
}
return buffer.toString().toLatinNumber().toLowerCase();
}