-
Notifications
You must be signed in to change notification settings - Fork 418
Expand file tree
/
Copy pathlib.rs
More file actions
111 lines (108 loc) · 2.51 KB
/
lib.rs
File metadata and controls
111 lines (108 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
mod capitalize;
mod case;
mod contains;
mod count_matches;
mod endswith;
mod find;
mod ilike;
mod left;
mod length_bytes;
mod like;
mod lower;
mod lpad;
mod lstrip;
mod normalize;
pub(crate) mod pad;
mod regexp_count;
mod regexp_extract;
mod regexp_extract_all;
mod regexp_match;
mod repeat;
mod replace;
mod reverse;
mod right;
mod rpad;
mod rstrip;
mod split;
mod startswith;
mod substr;
mod to_date;
mod to_datetime;
mod trim;
mod upper;
pub(crate) mod utils;
pub use capitalize::*;
pub use case::*;
pub use contains::*;
pub use count_matches::*;
pub use endswith::*;
pub use find::*;
pub use ilike::*;
pub use left::*;
pub use length_bytes::*;
pub use like::*;
pub use lower::*;
pub use lpad::*;
pub use lstrip::*;
pub use normalize::*;
pub use regexp_count::*;
pub use regexp_extract::*;
pub use regexp_extract_all::*;
pub use regexp_match::*;
pub use repeat::*;
pub use replace::*;
pub use reverse::*;
pub use right::*;
pub use rpad::*;
pub use rstrip::*;
pub use split::*;
pub use startswith::*;
pub use substr::*;
pub use to_date::*;
pub use to_datetime::*;
pub use trim::*;
pub use upper::*;
pub struct Utf8Functions;
impl daft_dsl::functions::FunctionModule for Utf8Functions {
fn register(parent: &mut daft_dsl::functions::FunctionRegistry) {
parent.add_fn(CamelCase);
parent.add_fn(Capitalize);
parent.add_fn(Contains);
parent.add_fn(CountMatches);
parent.add_fn(EndsWith);
parent.add_fn(Find);
parent.add_fn(ILike);
parent.add_fn(KebabCase);
parent.add_fn(Left);
parent.add_fn(LengthBytes);
parent.add_fn(Like);
parent.add_fn(Lower);
parent.add_fn(LPad);
parent.add_fn(LStrip);
parent.add_fn(Normalize);
parent.add_fn(RegexpCount);
parent.add_fn(RegexpExtract);
parent.add_fn(RegexpExtractAll);
parent.add_fn(RegexpMatch);
parent.add_fn(RegexpReplace);
parent.add_fn(RegexpSplit);
parent.add_fn(Repeat);
parent.add_fn(Replace);
parent.add_fn(Reverse);
parent.add_fn(Right);
parent.add_fn(RPad);
parent.add_fn(RStrip);
parent.add_fn(Trim);
parent.add_fn(SnakeCase);
parent.add_fn(Split);
parent.add_fn(StartsWith);
parent.add_fn(Substr);
parent.add_fn(TitleCase);
parent.add_fn(ToDate);
parent.add_fn(ToDatetime);
parent.add_fn(Upper);
parent.add_fn(UpperCamelCase);
parent.add_fn(UpperKebabCase);
parent.add_fn(UpperSnakeCase);
}
}