Home
last modified time | relevance | path

Searched refs:splitn (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/regex/tests/
Dapi.rs228 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!("")]);
Dmacros.rs151 macro_rules! splitn { macro
156 let splitted: Vec<_> = re.splitn(t!($text), $limit).collect();
/external/rust/crates/gdbstub/src/protocol/commands/
D_QEnvironmentHexEncoded.rs16 let mut keyval = keyval.splitn(2, |b| *b == b'='); in from_packet()
/external/rust/crates/form_urlencoded/src/
Dlib.rs48 let mut split2 = self.input.splitn(2, |&b| b == b'&'); in next()
54 let mut split2 = sequence.splitn(2, |&b| b == b'='); in next()
/external/crosvm/src/
Dmain.rs481 .map(|frag| frag.splitn(2, '=')) in parse_serial_options()
691 let parts: Vec<&str> = s.splitn(2, '@').collect(); in parse_direct_io_options()
988 let mut o = opt.splitn(2, '='); in set_argument()
1187 let mut kv = c.splitn(2, '='); in set_argument()
1313 let mut o = opt.splitn(2, '='); in set_argument()
1444 let trimmed_line = line.splitn(2, '#').next().unwrap().trim(); in set_argument()
1463 let trimmed_line = line.splitn(2, '#').next().unwrap().trim(); in set_argument()
Dargument.rs246 let mut iter = param.splitn(2, '='); in parse_arguments()
/external/rust/crates/ring/src/
Dtest.rs447 let parts: Vec<&str> = line.splitn(2, " = ").collect(); in parse_test_case()
/external/rust/crates/grpcio-sys/
Dbuild.rs73 let mut splits = s.splitn(2, '='); in clean_up_stale_cache()
/external/rust/crates/regex/src/
Dre_unicode.rs395 pub fn splitn<'r, 't>( in splitn() method
Dre_bytes.rs341 pub fn splitn<'r, 't>( in splitn() method
/external/rust/crates/clap/src/app/
Dparser.rs1731 let p: Vec<_> = arg.splitn(2, c).collect(); in parse_short_arg()
/external/rust/crates/regex/
DCHANGELOG.md188 Corrects `/-/.splitn("a", 2)` to return `["a"]` instead of `["a", ""]`.