Function parse_format_shorthand
pub fn parse_format_shorthand(s: &str) -> Result<usize, Error>Expand description
Parses a format ID shorthand string, accepting either f<digits> or bare <digits>.
Case-sensitive: non-matching strings are rejected per README.shorthand.md.
ยงErrors
Returns an error if the string is empty, contains non-digits, or exceeds MAX_FORMAT_ID.