Skip to main content

Crate dashem

Crate dashem 

Source
Expand description

Enterprise-Grade Em-Dash Removal Library for Rust

This crate provides safe Rust bindings to the high-performance C library for removing em-dashes (U+2014) from UTF-8 encoded strings.

§Examples

// The library name is 'dashem', not 'dash-em' (due to Cargo naming)
let result = dashem::remove("Hello—world").unwrap();
assert_eq!(result, "Helloworld");

Functions§

detect_cpu_features
Detects available CPU features.
implementation_name
Returns the name of the active implementation (e.g., “AVX2”, “SSE4.2”, “Scalar”).
remove
Removes all em-dashes (U+2014) from the input string.
version
Returns the library version string.