Registry / utility / icu-normalizer

icu-normalizer

JSON →
library2.2.0rscratesunverified

API for normalizing text into Unicode Normalization Forms (NFC, NFD, NFKC, NFKD).

# Cargo.toml [dependencies] icu_normalizer = "2.2.0"
INSTALL
IMPORT
SIG · ICU-NORMALIZER
I
icu-normalizer
utilityrustv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ComposingNormalizer
use icu_normalizer::ComposingNormalizer;

Normalizes a string to NFC form using ICU normalizer.

use icu_normalizer::ComposingNormalizer; fn main() { let normalizer = ComposingNormalizer::new_nfc(); let result = normalizer.normalize("\u{00E9}"); assert_eq!(result, "\u{00E9}"); }
Debug
Known issues
gotchaRequires data provider; may need `icu_provider` feature for custom data.
fix
Use `icu_normalizer::provider::Baked` with `icu_provider_blob` or enable `compiled_data` feature.
affects: >=2.0.0
Upgrade
Version history
2.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
icu-normalizer — cargo add icu-normalizer · libregistry