Home
last modified time | relevance | path

Searched refs:split_once (Results 1 – 6 of 6) sorted by relevance

/third_party/rust/crates/unicode-ident/generate/src/
Dparse.rs57 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/
Dlib.rs320 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/
Ddynamic.rs502 .split_once('\\') in complete_path()
/third_party/rust/crates/os_str_bytes/src/
Draw_str.rs599 pub fn split_once<P>(&self, pat: P) -> Option<(&Self, &Self)> in split_once() method
/third_party/rust/crates/clap/src/output/
Dhelp_template.rs135 if let Some((tag, rest)) = part.split_once('}') { in write_templated_help()
/third_party/rust/crates/memchr/bench/data/code/
Drust-library.rs4875 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(("", "-")));