8 releases
| 0.1.8 | Dec 10, 2025 |
|---|---|
| 0.1.6 | May 2, 2025 |
| 0.1.5 | Jun 26, 2024 |
| 0.1.4 | Jan 23, 2024 |
| 0.1.1 | Aug 9, 2022 |
#60 in Text processing
729,156 downloads per month
Used in 636 crates
(23 directly)
19KB
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
~135–510KB
~12K SLoC