(content: &[u8])
| 1546 | /// any of the class-like keywords. |
| 1547 | #[inline] |
| 1548 | fn has_class_keyword(content: &[u8]) -> bool { |
| 1549 | memmem::find(content, b"class").is_some() |
| 1550 | || memmem::find(content, b"interface").is_some() |
| 1551 | || memmem::find(content, b"trait").is_some() |
| 1552 | || memmem::find(content, b"enum").is_some() |
| 1553 | } |
| 1554 | |
| 1555 | /// SIMD-accelerated pre-screening: check whether the content contains |
| 1556 | /// any keyword relevant to symbol extraction (classes, functions, |