use pyo3::prelude::*;
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _canonicalize(text: &str) -> PyResult<String> {
Ok(crate::presets::canonicalize(text)?.into_owned())
}
#[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)?.into_owned())
}
#[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)?.into_owned())
}
#[pyfunction]
#[pyo3(signature = (text, *, lang=None))]
pub fn _search_key(text: &str, lang: Option<&str>) -> PyResult<String> {
Ok(crate::presets::search_key(text, lang)?.into_owned())
}
#[pyfunction]
#[pyo3(signature = (text, *, lang=None))]
pub fn _sort_key(text: &str, lang: Option<&str>) -> PyResult<String> {
Ok(crate::presets::sort_key(text, lang)?.into_owned())
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _strip_format(text: &str) -> String {
crate::presets::strip_format(text).into_owned()
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _strip_bidi(text: &str) -> String {
crate::presets::strip_bidi(text)
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _strip_tags(text: &str) -> String {
crate::api::strip_tags(text)
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _strip_variation_selectors(text: &str) -> String {
crate::api::strip_variation_selectors(text)
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _strip_noncharacters(text: &str) -> String {
crate::api::strip_noncharacters(text)
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _strip_pua(text: &str) -> String {
crate::api::strip_pua(text)
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _canonicalize_strict(text: &str) -> PyResult<String> {
Ok(crate::presets::canonicalize_strict(text)?.into_owned())
}
#[pyfunction]
#[pyo3(signature = (text,))]
pub fn _strip_obfuscation(text: &str) -> PyResult<String> {
Ok(crate::presets::strip_obfuscation(text)?.into_owned())
}