Executes compiled transforms against input strings.
The engine implements a cursor-based rewriting algorithm following the ICU transliterator design:
For each pass of conversion rules, walk the string from left to right.
At each cursor position, try each rule in order.
When a rule matches, replace the matched text and advance the cursor.
If no rule matches, advance the cursor by one codepoint.
Transform rules are applied to the entire string between passes.
The engine operates at the codepoint level (not grapheme level) because transforms need to process combining marks separately from base characters.
Summary
Functions
Executes a compiled transform on a string.
Functions
@spec execute(String.t(), Unicode.Transform.Compiler.CompiledTransform.t()) :: String.t()
Executes a compiled transform on a string.
Arguments
string— the input string.compiled— a compiled transform struct.
Returns
The transformed string.