confusables

Crates.ioconfusables
lib.rsconfusables
version0.1.0
sourcesrc
created_at2023-08-23 17:46:23.02391
updated_at2023-08-23 17:46:23.02391
descriptionUtilities around Unicode confusables/homoglyphs
homepage
repositoryhttps://github.com/AntoniosBarotsis/confusables/tree/main/crates/confusables
max_upload_size
id952386
size727,662
Tony (AntoniosBarotsis)

documentation

README

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!

Commit count: 0

cargo fmt