Lines Matching defs:starts_with
26 pub fn starts_with(&self, s: &str) -> bool {
27 self.rest.starts_with(s)
31 self.rest.starts_with(ch)
38 self.rest.starts_with(f)
66 if self.starts_with(tag) {
83 if s.starts_with("//")
84 && (!s.starts_with("///") || s.starts_with("////"))
85 && !s.starts_with("//!")
90 } else if s.starts_with("/**/") {
93 } else if s.starts_with("/*")
94 && (!s.starts_with("/**") || s.starts_with("/***"))
95 && !s.starts_with("/*!")
126 if !input.starts_with("/*") {
199 b'(' if !input.starts_with(ERROR) => Some(Delimiter::Parenthesis),
274 } else if input.starts_with(ERROR) {
288 .any(|prefix| input.starts_with(prefix))
297 let raw = input.starts_with("r#");
423 b'"' if input.rest[i + 1..].starts_with(delimiter) => {
500 b'"' if input.rest[i + 1..].starts_with(delimiter) => {
533 b'"' if input.rest[i + 1..].starts_with(delimiter) => {
821 let base = if input.starts_with("0x") {
824 } else if input.starts_with("0o") {
827 } else if input.starts_with("0b") {
893 if input.starts_with("//") || input.starts_with("/*") {
928 if !rest.starts_with('\n') {
962 if input.starts_with("//!") {
966 } else if input.starts_with("/*!") {
969 } else if input.starts_with("///") {
976 } else if input.starts_with("/**") && !input.rest[3..].starts_with('*') {
990 } else if ch == '\r' && input.rest[i + 1..].starts_with('\n') {