Is there a way to use the Unicode tables in the Rust regex crate to match a single char without turning it into a String or &str? It seems like the internals must have a way to do this, but perhaps not exposed? Is there a trick?
Replying to @wycats
More annoying alternative: generate the table of interest yourself with ucd-generate: https://github.com/BurntSushi/ucd-generate … --- Then you can binary search it yourself. Each table in regex crate includes ucd-generate command: https://github.com/rust-lang/regex/blob/2b1fc2772dc4d99ad732a43751fb5627f327abc8/regex-syntax/src/unicode_tables/property_bool.rs#L3 …
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.