2 releases
0.1.1 | Aug 9, 2022 |
---|---|
0.1.0 | Aug 9, 2022 |
#430 in Text processing
6,323 downloads per month
Used in 11 crates
(2 directly)
17KB
181 lines
Usage
fn main() {
assert_eq!(unescaper::unescape(r"\u000a").unwrap(), "\n");
assert_eq!(unescaper::unescape(r"\u{a}").unwrap(), "\n");
assert_eq!(unescaper::unescape(r"\x0a").unwrap(), "\n");
assert_eq!(unescaper::unescape(r"\12").unwrap(), "\n");
}
Thanks
The idea comes from unescape-rs.
The last commit of that repository was seven years ago.
So, I think it is no longer maintained.
That's why I created this repository, and I have made some improvements.
Dependencies
~0.6–1MB
~25K SLoC