Searched refs:split_once (Results 1 - 6 of 6) sorted by relevance
/third_party/rust/crates/unicode-ident/generate/src/ |
H A 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/ |
H A 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/os_str_bytes/src/ |
H A D | raw_str.rs | 583 /// 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 D | dynamic.rs | 502 .split_once('\\') in complete_path()
|
/third_party/rust/crates/clap/src/output/ |
H A D | help_template.rs | 135 if let Some((tag, rest)) = part.split_once('}') {
|
/third_party/rust/crates/memchr/bench/data/code/ |
H A D | rust-library.rs | 4875 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