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/
H A 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/
H A 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/os_str_bytes/src/
H A Draw_str.rs583 /// Equivalent to [`str::split_once`].
593 /// raw.split_once("o"),
595 /// assert_eq!(None, raw.split_once("of"));
599 pub fn split_once<P>(&self, pat: P) -> Option<(&Self, &Self)> in split_once() functions
/third_party/rust/crates/clap/clap_complete/src/
H A Ddynamic.rs502 .split_once('\\') in complete_path()
/third_party/rust/crates/clap/src/output/
H A Dhelp_template.rs135 if let Some((tag, rest)) = part.split_once('}') {
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs4875 assert_eq!("".split_once("->"), None); in test_split_once()
4876 assert_eq!("-".split_once("->"), None); in test_split_once()
4877 assert_eq!("->".split_once("->"), Some(("", ""))); in test_split_once()
4878 assert_eq!("a->".split_once("->"), Some(("a", ""))); in test_split_once()
4879 assert_eq!("->b".split_once("->"), Some(("", "b"))); in test_split_once()
4880 assert_eq!("a->b".split_once("->"), Some(("a", "b"))); in test_split_once()
4881 assert_eq!("a->b->c".split_once("->"), Some(("a", "b->c"))); in test_split_once()
4882 assert_eq!("---".split_once("--"), Some(("", "-"))); in test_split_once()
[all...]

Completed in 47 milliseconds