Lines Matching defs:split
83 /// or as a specialized Rust function (native). It can be used to search, split
119 /// and `split` can be replaced with `str::contains`, `str::find`,
120 /// `str::match_indices` and `str::split`.
133 /// assert_eq!(haystack.split(&re).collect::<Vec<_>>(), vec!["a", "b", "c"]);
171 /// to search, split or replace text in a string.
360 /// To split a string delimited by arbitrary amounts of spaces or tabs:
366 /// let fields: Vec<&str> = re.split("a b \t c\td e").collect();
370 pub fn split<'r, 't>(&'r self, text: &'t str) -> Split<'r, 't> {
378 /// string that is not split will be the last element in the iterator.
399 SplitN { splits: self.split(text), n: limit }
779 /// lifetime of the string being split.
817 /// lifetime of the string being split.