You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a collection, a reduction function, and an initial value reduce the result
197
197
198
-
.. method:: SelectorList.to_list(iterable)
198
+
.. method:: SelectorList.to_list(this)
199
199
200
200
Transform an iterator into a list
201
201
202
202
Methods for `Str`
203
203
"""""""""""""""""
204
-
.. method:: Str.base_name(str)
204
+
.. method:: Str.base_name(this)
205
205
206
206
Given a string that represents a file name, returns the basename
207
207
208
-
.. method:: Str.contains(str, to_find)
208
+
.. method:: Str.contains(this, to_find)
209
209
210
210
Search for to_find in the given string. Return whether a match is found. to_find can be either a pattern or a string
211
211
212
-
.. method:: Str.ends_with(str, suffix)
212
+
.. method:: Str.ends_with(this, suffix)
213
213
214
214
Given a string, returns whether it ends with the given suffix
215
215
216
-
.. method:: Str.find(str, to_find)
216
+
.. method:: Str.find(this, to_find)
217
217
218
218
Search for to_find in the given string. Return position of the match, or -1 if no match. to_find can be either a pattern or a string
219
219
220
-
.. method:: Str.is_lower_case(str)
220
+
.. method:: Str.is_lower_case(this)
221
221
222
222
Return whether the given string contains lower case characters only
223
223
224
-
.. method:: Str.is_mixed_case(str)
224
+
.. method:: Str.is_mixed_case(this)
225
225
226
226
Return whether the given string is written in mixed case, that is, with only lower case characters except the first one and every character following an underscore
227
227
228
-
.. method:: Str.is_upper_case(str)
228
+
.. method:: Str.is_upper_case(this)
229
229
230
230
Return whether the given string contains upper case characters only
231
231
232
-
.. method:: Str.length(str)
232
+
.. method:: Str.length(this)
233
233
234
234
Given a string, return the length of it in character
235
235
236
-
.. method:: Str.split(str, separator)
236
+
.. method:: Str.split(this, separator)
237
237
238
238
Given a string, return an iterator on the words contained by str separated by separator
239
239
240
-
.. method:: Str.starts_with(str, prefix)
240
+
.. method:: Str.starts_with(this, prefix)
241
241
242
242
Given a string, returns whether it starts with the given prefix
243
243
244
-
.. method:: Str.substring(str, from, to)
244
+
.. method:: Str.substring(this, from, to)
245
245
246
246
Given a string and two indices (from and to), return the substring contained between indices from and to (both included)
247
247
248
-
.. method:: Str.to_lower_case(str)
248
+
.. method:: Str.to_lower_case(this)
249
249
250
250
Return the given string written with lower case characters only
251
251
252
-
.. method:: Str.to_upper_case(str)
252
+
.. method:: Str.to_upper_case(this)
253
253
254
254
Return the given string written with upper case characters only
255
255
256
256
Methods for `Token`
257
257
"""""""""""""""""""
258
-
.. method:: Token.end_column(token)
258
+
.. method:: Token.end_column(this)
259
259
260
260
Return the column end
261
261
262
-
.. method:: Token.end_line(token)
262
+
.. method:: Token.end_line(this)
263
263
264
264
Return the line end
265
265
266
266
.. method:: Token.is_equivalent(this, other)
267
267
268
268
Return whether two tokens are structurally equivalent
0 commit comments