@@ -26,21 +26,42 @@ def time_extract(self):
26
26
def time_findall (self ):
27
27
self .s .str .findall ('[A-Z]+' )
28
28
29
+ def time_find (self ):
30
+ self .s .str .find ('[A-Z]+' )
31
+
32
+ def time_rfind (self ):
33
+ self .s .str .rfind ('[A-Z]+' )
34
+
29
35
def time_get (self ):
30
36
self .s .str .get (0 )
31
37
32
38
def time_len (self ):
33
39
self .s .str .len ()
34
40
41
+ def time_join (self ):
42
+ self .s .str .join (' ' )
43
+
35
44
def time_match (self ):
36
45
self .s .str .match ('A' )
37
46
47
+ def time_normalize (self ):
48
+ self .s .str .normalize ('NFC' )
49
+
38
50
def time_pad (self ):
39
51
self .s .str .pad (100 , side = 'both' )
40
52
53
+ def time_partition (self ):
54
+ self .s .str .partition ('A' )
55
+
56
+ def time_rpartition (self ):
57
+ self .s .str .rpartition ('A' )
58
+
41
59
def time_replace (self ):
42
60
self .s .str .replace ('A' , '\x01 \x01 ' )
43
61
62
+ def time_translate (self ):
63
+ self .s .str .translate ({'A' : '\x01 \x01 ' })
64
+
44
65
def time_slice (self ):
45
66
self .s .str .slice (5 , 15 , 2 )
46
67
@@ -65,6 +86,12 @@ def time_upper(self):
65
86
def time_lower (self ):
66
87
self .s .str .lower ()
67
88
89
+ def time_wrap (self ):
90
+ self .s .str .wrap (10 )
91
+
92
+ def time_zfill (self ):
93
+ self .s .str .zfill (10 )
94
+
68
95
69
96
class Repeat (object ):
70
97
@@ -129,6 +156,9 @@ def setup(self, expand):
129
156
def time_split (self , expand ):
130
157
self .s .str .split ('--' , expand = expand )
131
158
159
+ def time_rsplit (self , expand ):
160
+ self .s .str .rsplit ('--' , expand = expand )
161
+
132
162
133
163
class Dummies (object ):
134
164
0 commit comments