string_normalizer 0.2.0 copy "string_normalizer: ^0.2.0" to clipboard
string_normalizer: ^0.2.0 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:

  • pinyin.info/unicode/diacritics.html
  • unicode.org/Public/UNIDATA/NamesList.txt

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
  • Shorter version
final normalized = 'Đây là chữ có dấu'.nml;
// Result: Day la chu co dau
2
likes
0
pub points
78%
popularity

Publisher

verified publisherlamnhan.dev

Helps you to remove accents and diacritics from strings, it supports both static method and extension.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on string_normalizer