parse_target_token

Function parse_target_token 

Source
pub fn parse_target_token(token: &str) -> Option<CharTarget>
Expand description

Parses a target token strictly according to canonical shorthand formatting rules:

  • Format ID: f<digits> (e.g. f80)
  • Unicode codepoint: u<lowercase-hex> with 1..=6 hex digits (e.g. u0020, u12ab)
  • Short Dc ID: <digits> (e.g. 246, 0)