| 1557 | /// constants). |
| 1558 | #[inline] |
| 1559 | fn has_any_keyword(content: &[u8]) -> bool { |
| 1560 | memmem::find(content, b"class").is_some() |
| 1561 | || memmem::find(content, b"interface").is_some() |
| 1562 | || memmem::find(content, b"trait").is_some() |
| 1563 | || memmem::find(content, b"enum").is_some() |
| 1564 | || memmem::find(content, b"function").is_some() |
| 1565 | || memmem::find(content, b"define").is_some() |
| 1566 | || memmem::find(content, b"const").is_some() |
| 1567 | } |
| 1568 | |
| 1569 | /// Check if a character is a valid boundary (not part of an identifier). |
| 1570 | #[inline] |