Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-ops/src/chunked_array/strings/mod.rs
6939 views
1
#[cfg(feature = "strings")]
2
mod case;
3
#[cfg(feature = "strings")]
4
mod concat;
5
#[cfg(feature = "strings")]
6
mod escape_regex;
7
#[cfg(feature = "strings")]
8
mod extract;
9
#[cfg(feature = "find_many")]
10
mod find_many;
11
#[cfg(feature = "extract_jsonpath")]
12
mod json_path;
13
#[cfg(feature = "strings")]
14
mod namespace;
15
#[cfg(feature = "string_normalize")]
16
mod normalize;
17
#[cfg(feature = "string_pad")]
18
mod pad;
19
#[cfg(feature = "string_reverse")]
20
mod reverse;
21
#[cfg(feature = "strings")]
22
mod split;
23
#[cfg(feature = "strings")]
24
mod strip;
25
#[cfg(feature = "strings")]
26
mod substring;
27
#[cfg(all(not(feature = "nightly"), feature = "strings"))]
28
mod unicode_internals;
29
30
#[cfg(feature = "strings")]
31
pub use concat::*;
32
#[cfg(feature = "strings")]
33
pub use escape_regex::*;
34
#[cfg(feature = "find_many")]
35
pub use find_many::*;
36
#[cfg(feature = "extract_jsonpath")]
37
pub use json_path::*;
38
#[cfg(feature = "strings")]
39
pub use namespace::*;
40
#[cfg(feature = "string_normalize")]
41
pub use normalize::*;
42
use polars_core::prelude::*;
43
#[cfg(feature = "strings")]
44
pub use split::*;
45
#[cfg(feature = "strings")]
46
pub use strip::*;
47
#[cfg(feature = "strings")]
48
pub use substring::{substring_ternary_offsets_value, update_view};
49
50
pub trait AsString {
51
fn as_string(&self) -> &StringChunked;
52
}
53
54
impl AsString for StringChunked {
55
fn as_string(&self) -> &StringChunked {
56
self
57
}
58
}
59
60