use crate::column::Column;
use crate::error::{CudfError, Result};
impl Column {
pub fn str_contains(&self, target: &str) -> Result<Column> {
let result = cudf_cxx::strings::contains::ffi::str_contains(&self.inner, target)
.map_err(CudfError::from_cxx)?;
Ok(Column { inner: result })
}
pub fn str_contains_re(&self, pattern: &str) -> Result<Column> {
let result = cudf_cxx::strings::contains::ffi::str_contains_re(&self.inner, pattern)
.map_err(CudfError::from_cxx)?;
Ok(Column { inner: result })
}
pub fn str_matches_re(&self, pattern: &str) -> Result<Column> {
let result = cudf_cxx::strings::contains::ffi::str_matches_re(&self.inner, pattern)
.map_err(CudfError::from_cxx)?;
Ok(Column { inner: result })
}
pub fn str_count_re(&self, pattern: &str) -> Result<Column> {
let result = cudf_cxx::strings::contains::ffi::str_count_re(&self.inner, pattern)
.map_err(CudfError::from_cxx)?;
Ok(Column { inner: result })
}
}