Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.08 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.08 KB

Confusables

Build & Tests Crates.io docs.rs

A Rust crate that provides utilities around Unicode confusables/homoglyphs. Specifically about:

  • detecting confusable characters in strings
  • replacing confusable characters (according to the data file specified in the Unicode® Technical Standard)
  • confusable-resilient operations (equality, contains) on strings

The Unicode data file is parsed at compile time so there is no extra overhead at runtime.

Get Started

All the new methods are implemented as part of a trait which you will need to import:

use confusables::Confusable;

All methods come with code examples so be sure to check those!