use pyo3::prelude::*;
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _security_clean(text: &str) -> PyResult<String> {
Ok(crate::presets::security_clean(text)?)
}
#[pyfunction]
#[pyo3(signature = (text, *, lang=None, emoji_style="cldr"))]
pub fn _ml_normalize(text: &str, lang: Option<&str>, emoji_style: &str) -> PyResult<String> {
Ok(crate::presets::ml_normalize(text, lang, emoji_style)?)
}
#[pyfunction]
#[pyo3(signature = (text, *, lang=None, strict_iso9=false))]
pub fn _catalog_key(text: &str, lang: Option<&str>, strict_iso9: bool) -> PyResult<String> {
Ok(crate::presets::catalog_key(text, lang, strict_iso9)?)
}
#[pyfunction]
#[pyo3(signature = (text, *, lang=None))]
pub fn _search_key(text: &str, lang: Option<&str>) -> PyResult<String> {
Ok(crate::presets::search_key(text, lang)?)
}
#[pyfunction]
#[pyo3(signature = (text, *, lang=None))]
pub fn _sort_key(text: &str, lang: Option<&str>) -> PyResult<String> {
Ok(crate::presets::sort_key(text, lang)?)
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _display_clean(text: &str) -> String {
crate::presets::display_clean(text)
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _strip_bidi(text: &str) -> String {
crate::presets::strip_bidi(text)
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _normalize_user_input(text: &str) -> PyResult<String> {
Ok(crate::presets::normalize_user_input(text)?)
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _strip_obfuscation(text: &str) -> PyResult<String> {
Ok(crate::presets::strip_obfuscation(text)?)
}