parse_unicode_shorthand

Function parse_unicode_shorthand 

pub fn parse_unicode_shorthand(s: &str) -> Result<u32, Error>
Expand description

Parses a Unicode shorthand string (u[0-9a-f]+).

Case-sensitive per README.shorthand.md.

§Errors

Returns an error if the prefix is not ‘u’, hex characters are invalid or uppercase, or the codepoint exceeds 0x10FFFF.