Skip to main content

is_unsafe_ascii

Function is_unsafe_ascii 

Source
fn is_unsafe_ascii(ch: char) -> bool
Expand description

Whether ch is an ASCII char that URL_PATH_ENCODE_SET would encode. The set’s membership test is crate-private, so probe it via utf8_percent_encode (which encodes an ASCII char iff it’s in the set). ASCII-only: the caller keeps non-ASCII verbatim.