(code_point: char, first: bool)
| 335 | // Ref: https://wicg.github.io/urlpattern/#is-a-valid-name-code-point |
| 336 | #[inline] |
| 337 | pub(crate) fn is_valid_name_codepoint(code_point: char, first: bool) -> bool { |
| 338 | if first { |
| 339 | ID_START.contains(code_point) || matches!(code_point, '$' | '_') |
| 340 | } else { |
| 341 | ID_CONTINUE.contains(code_point) |
| 342 | || matches!(code_point, '$' | '\u{200C}' | '\u{200D}') |
| 343 | } |
| 344 | } |
no outgoing calls
no test coverage detected