Searched refs:split_once (Results 1 – 6 of 6) sorted by relevance
/third_party/rust/crates/unicode-ident/generate/src/ |
D | parse.rs | 57 let (mut codepoint, rest) = line.split_once(';')?; in parse_line() 61 if let Some((a, b)) = codepoint.split_once("..") { in parse_line()
|
/third_party/rust/crates/clap/clap_lex/src/ |
D | lib.rs | 320 let (flag, value) = if let Some((p0, p1)) = remainder.split_once('=') { in to_long() 336 let (flag, value) = if let Some((p0, p1)) = remainder.split_once('=') { in to_long()
|
/third_party/rust/crates/clap/clap_complete/src/ |
D | dynamic.rs | 502 .split_once('\\') in complete_path()
|
/third_party/rust/crates/os_str_bytes/src/ |
D | raw_str.rs | 599 pub fn split_once<P>(&self, pat: P) -> Option<(&Self, &Self)> in split_once() method
|
/third_party/rust/crates/clap/src/output/ |
D | help_template.rs | 135 if let Some((tag, rest)) = part.split_once('}') { in write_templated_help()
|
/third_party/rust/crates/memchr/bench/data/code/ |
D | rust-library.rs | 4875 assert_eq!("".split_once("->"), None); 4876 assert_eq!("-".split_once("->"), None); 4877 assert_eq!("->".split_once("->"), Some(("", ""))); 4878 assert_eq!("a->".split_once("->"), Some(("a", ""))); 4879 assert_eq!("->b".split_once("->"), Some(("", "b"))); 4880 assert_eq!("a->b".split_once("->"), Some(("a", "b"))); 4881 assert_eq!("a->b->c".split_once("->"), Some(("a", "b->c"))); 4882 assert_eq!("---".split_once("--"), Some(("", "-")));
|