pub fn decoded_len(input: &[u8]) -> Result<usize, ParseError>Expand description
Validates input and returns its decoded length.
§Errors
ErrorKind::InvalidPercentEncoding.
§Examples
assert_eq!(parse_net::pct::decoded_len(b"a%20b")?, 3);pub fn decoded_len(input: &[u8]) -> Result<usize, ParseError>Validates input and returns its decoded length.
ErrorKind::InvalidPercentEncoding.
assert_eq!(parse_net::pct::decoded_len(b"a%20b")?, 3);