Searched refs:splitn (Results 1 – 11 of 11) sorted by relevance
/third_party/rust/crates/regex/tests/ |
D | api.rs | 228 splitn!(splitn_below_limit, r"-", r"a", 2, &[t!("a")]); 229 splitn!(splitn_at_limit, r"-", r"a-b", 2, &[t!("a"), t!("b")]); 230 splitn!(splitn_above_limit, r"-", r"a-b-c", 2, &[t!("a"), t!("b-c")]); 231 splitn!(splitn_zero_limit, r"-", r"a-b", 0, empty_vec!()); 232 splitn!(splitn_trailing_blank, r"-", r"a-", 2, &[t!("a"), t!("")]); 233 splitn!(splitn_trailing_separator, r"-", r"a--", 2, &[t!("a"), t!("-")]); 234 splitn!(splitn_empty, r"-", r"", 1, &[t!("")]);
|
D | macros.rs | 151 macro_rules! splitn { macro 156 let splitted: Vec<_> = re.splitn(t!($text), $limit).collect();
|
/third_party/rust/crates/memchr/bench/src/ |
D | bench.rs | 37 let mut it = name.splitn(2, "/"); in define()
|
/third_party/rust/crates/autocfg/src/ |
D | version.rs | 49 let mut iter = version.splitn(3, '.'); in from_rustc()
|
/third_party/rust/crates/rustix/tests/thread/ |
D | prctl.rs | 137 let mut iter = line.splitn(2, '='); in is_linux_kernel_config_item_enabled()
|
/third_party/rust/crates/rustix/tests/process/ |
D | prctl.rs | 204 let mut iter = line.splitn(2, '='); in is_linux_kernel_config_item_enabled()
|
/third_party/rust/crates/version_check/src/ |
D | lib.rs | 110 let split = |s: &str| s.splitn(2, ":").nth(1).map(|s| s.trim().to_string()); in version_and_date_from_rustc_verbose_version()
|
/third_party/rust/crates/regex/src/ |
D | re_unicode.rs | 394 pub fn splitn<'r, 't>( in splitn() method
|
D | re_bytes.rs | 341 pub fn splitn<'r, 't>( in splitn() method
|
/third_party/rust/crates/regex/ |
D | CHANGELOG.md | 326 Corrects `/-/.splitn("a", 2)` to return `["a"]` instead of `["a", ""]`.
|
/third_party/rust/crates/memchr/bench/data/code/ |
D | rust-library.rs | 372 make_test!(splitn_space_char, s, s.splitn(10, ' ').count()); 4777 let split: Vec<&str> = data.splitn(4, ' ').collect(); 4780 let split: Vec<&str> = data.splitn(4, |c: char| c == ' ').collect(); 4784 let split: Vec<&str> = data.splitn(4, 'ä').collect(); 4787 let split: Vec<&str> = data.splitn(4, |c: char| c == 'ä').collect(); 5451 with str::splitn; 10180 assert_eq!(xs.splitn(1, |x| *x % 2 == 0).collect::<Vec<_>>(), splits); 10182 assert_eq!(xs.splitn(2, |x| *x % 2 == 0).collect::<Vec<_>>(), splits); 10184 assert_eq!(xs.splitn(4, |_| true).collect::<Vec<_>>(), splits); 10188 assert_eq!(xs.splitn(2, |x| *x == 5).collect::<Vec<_>>(), splits);
|