mailio_ascii (mailio v0.2.0)
Byte-safe ASCII helpers (pure, total).
The string module interprets its input as Unicode and raises on invalid UTF-8. Header bytes and MIME tokens arrive as arbitrary bytes (real-world and adversarial mail is frequently not valid UTF-8), so the parser uses these byte-level helpers instead. They only touch the ASCII range and pass all other bytes through untouched.
Summary
Functions
Parse a leading signed integer from a (possibly non-UTF8) binary. Returns Default if no digits are present. Never raises.
Functions
Parse a leading signed integer from a (possibly non-UTF8) binary. Returns Default if no digits are present. Never raises.