Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

namidaco/string_clean_utils

Open more actions menu

Repository files navigation

A Dart library to remove/replace diacritics, accents, symbols & confusables from text

Examples Usage

  • Replaces diacritics & accents with original text
    final normalized = StringCleanUtils.normalize('𝒉𝒂𝒓𝒍𝒆𝒚𝒔 𝒊𝒏 𝒉𝒂𝒘𝒂𝒊𝒊 - 𝒌𝒂𝒕𝒚 𝒑𝒆𝒓𝒓𝒚');
    print(normalized); // 'harleys in hawaii - katy perry';

    final normalized2 = StringCleanUtils.normalize('𝑻𝒉𝒆 ℚ𝕦𝕚𝕔𝕜 Brown Fox 𝔍𝔲𝔪𝔭𝔢𝔡 ⓞⓥⓔⓡ ʇɥǝ 𝗟𝗮𝘇𝘆 𝙳𝚘𝚐');
    print(normalized2); // 'The Quick Brown Fox Jumped over the Lazy Dog';
  • Remove symbols from text
    final normalized = StringCleanUtils.removeSymbols('The [Quick }Brown Fox %Jumped over ^the Lazy @Dog');
    print(normalized); // 'The Quick Brown Fox Jumped over the Lazy Dog';
  • Remove symbols & whitespaces from text
    final normalized = StringCleanUtils.removeSymbolsAndWhitespaces('The [Quick }Brown Fox %Jumped over ^the Lazy @Dog');
    print(normalized); // 'TheQuickBrownFoxJumpedovertheLazyDog';

Note

About

Dart library to remove/replace diacritics, accents, symbols & confusables from text

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.