Unicode.Transform.LatinAscii (Unicode Transform v1.0.0)

Copy Markdown View Source

Compiled Latin-ASCII transform for fast codepoint-level transliteration.

Auto-generated from priv/transforms/Latin-ASCII.xml. Regenerate with: mix unicode.generate_latin_ascii

This module replaces the cursor-based rule engine with direct pattern-matched function heads, achieving O(1) lookup per codepoint via the BEAM's pattern matching dispatch.

Summary

Functions

Transforms a Latin string to ASCII.

Functions

transform(string)

@spec transform(String.t()) :: String.t()

Transforms a Latin string to ASCII.

Applies NFD normalization, maps each codepoint to its ASCII equivalent, strips combining marks, and applies NFC normalization.

Arguments

  • string — the input string.

Returns

The ASCII-transliterated string.