5 releases
0.1.4 | Jan 23, 2024 |
---|---|
0.1.3 | Nov 24, 2023 |
0.1.2 | Aug 20, 2023 |
0.1.1 | Aug 9, 2022 |
0.1.0 | Aug 9, 2022 |
#75 in Text processing
116,152 downloads per month
Used in 285 crates
(7 directly)
18KB
191 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
~335–800KB
~19K SLoC