disarm 0.11.0

Unicode canonicalization and TR39 visual confusable analysis: building blocks for text-security pipelines (homoglyph/bidi/zalgo handling) plus standards-based phonetic transliteration
Documentation
1
2
3
4
5
6
7
8
9
10
//! PyO3 shim for `crate::whitespace` (Layer-1). Infallible.

use pyo3::prelude::*;

/// `collapse_whitespace(text) -> str` — fold-only (#433).
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _collapse_whitespace(text: &str) -> String {
    crate::whitespace::collapse_whitespace(text)
}