Function is_punct_char

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

Checks whether a given character should count as punctuation

Used to determine word boundaries, made to match the implementation of isPunctChar from the JS library. This is currently implemented as a match, but might be simplified as a regex if benchmarking shows this to be beneficient.