Skip to content

Unescape strings with escape sequences written out as literal characters.

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE-GPL3
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

hack-ink/unescaper

Repository files navigation

Unescaper

Unescape strings with escape sequences written out as literal characters.

License GPLv3 License MIT Checks GitHub tag (latest by date) GitHub code lines GitHub last commit

Usage

More Examples

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.

About

Unescape strings with escape sequences written out as literal characters.

Topics

Resources

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE-GPL3
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages