-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unescape_ascii fn #169
Comments
Can you link to the |
https://docs.rs/bstr/latest/bstr/struct.BStr.html#method.escape_ascii Although I realize now that is coming from the core lib. 😳 |
Correct. It's not a method in this library. This library does have Otherwise your use case sounds more like something that is a bit niche and might be deserving of something bespoke on your end. |
As it turns out escape_bytes is exactly what I was looking for. Thanks. And thanks for making this crate |
The bstr crate has an
escape_ascii
function onBstr
which is really helpful for producing a string version of aBstr
that can be printed, or placed in places that only ascii can be used.It'd be helpful if there was an
unescape_ascii
function for producing a [u8]/Bstr from the escaped string produced byescape_ascii
.Then it would be possible to round-trip
Bstr
into places only ascii strings can be passed.The text was updated successfully, but these errors were encountered: