Home
last modified time | relevance | path

Searched refs:starts_with (Results 1 – 13 of 13) sorted by relevance

/linux/rust/syn/
H A Dwhitespace.rs7 if s.starts_with("//") in skip()
8 && (!s.starts_with("///") || s.starts_with("////")) in skip()
9 && !s.starts_with("//!") in skip()
17 } else if s.starts_with("/**/") { in skip()
20 } else if s.starts_with("/*") in skip()
21 && (!s.starts_with("/**") || s.starts_with("/***")) in skip()
22 && !s.starts_with("/*!") in skip()
H A Dlib.rs992 if content.starts_with(BOM) { in parse_file()
997 if content.starts_with("#!") { in parse_file()
999 if !rest.starts_with('[') { in parse_file()
H A Dlifetime.rs41 if !symbol.starts_with('\'') { in new()
H A Dlit.rs1343 assert!(s.starts_with('"')); in parse_lit_str_cooked()
/linux/rust/proc-macro2/
H A Dparse.rs28 pub(crate) fn starts_with(&self, s: &str) -> bool { in starts_with() method
29 self.rest.starts_with(s) in starts_with()
33 self.rest.starts_with(ch) in starts_with_char()
40 self.rest.starts_with(f) in starts_with_fn()
68 if self.starts_with(tag) { in parse()
85 if s.starts_with("//") in skip_whitespace()
86 && (!s.starts_with("///") || s.starts_with("////")) in skip_whitespace()
87 && !s.starts_with("//!") in skip_whitespace()
92 } else if s.starts_with("/**/") { in skip_whitespace()
95 } else if s.starts_with("/*") in skip_whitespace()
[all …]
H A Dfallback.rs82 if cursor.starts_with(BYTE_ORDER_MARK) { in from_str_checked()
113 }) if literal.repr.starts_with('-') => { in push_token_from_proc_macro()
882 other.starts_with("r#") && *self.sym == other[2..] in eq()
1200 .starts_with(|next| '0' <= next && next <= '7') in escape_utf8()
/linux/tools/perf/util/
H A Ddrm_pmu.c132 static bool starts_with(const char *str, const char *prefix) starts_with() function
/linux/tools/perf/arch/x86/util/
H A Dpmu.c74 static bool starts_with(const char *str, const char *prefix) starts_with() function
/linux/rust/macros/
H A Dhelpers.rs
H A Dpaste.rs15 if value.starts_with('"') && value.ends_with('"') { in concat_helper()
23 if value.starts_with("r#") { in concat_helper()
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c213 static inline bool starts_with(const char *str, const char *prefix) in starts_with() function
370 if (!starts_with(sh_orig_name, HYP_SECTION_PREFIX)) in emit_rela_section()
/linux/scripts/
H A Dgenerate_rust_target.rs148 if line.starts_with('#') { in from_stdin()
/linux/tools/power/x86/turbostat/
H A Dturbostat.c10969 bool starts_with(const char *str, const char *prefix) in starts_with() function
11087 if (starts_with(add_command, "name=")) { in parse_add_command_pmt()
11092 if (starts_with(add_command, "type=")) { in parse_add_command_pmt()
11097 if (starts_with(add_command, "domain=")) { in parse_add_command_pmt()
11119 if (starts_with(add_command, "format=")) { in parse_add_command_pmt()