6 releases
0.1.5 | Jun 26, 2024 |
---|---|
0.1.4 | Jan 23, 2024 |
0.1.3 | Nov 24, 2023 |
0.1.2 | Aug 20, 2023 |
0.1.1 | Aug 9, 2022 |
#61 in Text processing
144,593 downloads per month
Used in 375 crates
(16 directly)
18KB
192 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
~265–730KB
~17K SLoC