bstr icon indicating copy to clipboard operation
bstr copied to clipboard

A string type for Rust that is not required to be valid UTF-8.

Results 47 bstr issues
Sort by recently updated
recently updated
newest added

Working with mostly-UTF-8 byte strings, the two biggest things my current project is missing are substring matching (which this crate provides) and integer parsing (which `std` provides only for `str`)....

enhancement
good first issue

This follows after discussion and work on #64. Importing the trait `FromBytesRadix` will provide `{integer}::from_bytes_radix(...)` for integer types, analogous to `{integer}::from_str_radix(...)` but operating on an `&dyn AsRef` rather than an...

For those coming here that don't know what `bstr` is: it is a **string library for `&[u8]`.** The essential difference between the strings in `bstr` and the `&str` type in...

help wanted

In considering feedback on my use of bstr for 1.0 (see #40), one annoyance that stood out to me is having to convert things back to a `BStr` when doing...

The change for 1.0 mentioned in #40 > ByteVec::into_os_string now returns Result instead of Result. Made me consider this. In the docs, it says > 1. One could re-implement WTF-8...

In the docs > 1. One could re-implement WTF-8 and re-encode file paths on Windows to WTF-8 by accessing their underlying 16-bit integer representation. Unfortunately, this isn’t zero cost (it...

I'm using bstr to help parse a few formats, some of them are text (but not necessarily utf8) and some of them are binary but contain strings. I have a...

enhancement

`ByteSlice::trim` (and related) are not competitive with libstd's in the case that the whitespace is ASCII. The difference is as much as 50%, and is something I noticed when moving...

enhancement

In the distant future, when `bstr` can use const generics, the following reduces the amount of `B(b"blah")` you need to to literals do by a decent amount, letting you use...

enhancement

Because `ByteVec` methods operate through deref on `BString`, it is impossible to use the ones with move semantics (`into_string` etc.) to move out of a `BString`, which is confusing. ```rust...

question