string_normalizer 0.0.1+2 string_normalizer: ^0.0.1+2 copied to clipboard
Helps you to remove accents and diacritics from strings, it supports both static method and extension.
String Normalizer #
Helps you to remove accents and diacritics from strings.
Data source: http://pinyin.info/unicode/diacritics.html
Usage #
- Static method
final normalized = StringNormalizer.normalize('Đây là chữ có dấu');
// Result: Day la chu co dau
- As an extension
final normalized = 'Đây là chữ có dấu'.normalize();
// Result: Day la chu co dau