BurntSushi/bstr
View on GitHub ↗ ★ 1,125 Rust
A string type for Rust that is not required to be valid UTF-8.
9 mentions on Hacker News by 5 people: 1 story, 8 comments · first 2020-05-03 · latest 2026-08-03
20082026
-
Either Vec<u8> or https://github.com/BurntSushi/bstr
comment by iknowstuff · 2024-02-04 · in Microsoft seeks Rust developers to rewrite core C# code -
…implement parsing for the standard css properties. - There are crates like https://github.com/BurntSushi/bstr and https://docs.rs/wtf8/latest/wtf8/ for working with non-unicode text We are planning to add a C API to Taffy, but tbh I
comment by nicoburns · 2023-04-12 · in We're building a browser when it's supposed to be impossible -
…https://docs.rs/bstr/latest/bstr/#handling-of-invalid-utf-8 NSFL regex that implements word breaking: https://github.com/BurntSushi/bstr/blob/86947727666d7b21c97e...
comment by burntsushi · 2023-01-04 · in Chunking strings in Elixir: how difficult can it be? -
…how Burnt Sushi's bstr type [1] works in Rust and how the standard String type works in Julia. [1] https://github.com/BurntSushi/bstr
comment by StefanKarpinski · 2022-12-14 · in The History and rationale of the Python 3 Unicode model for the operating system -
…tr/latest/bstr/#file-paths-and-os-strings I'd be happy to answer more questions if you have them. :-) https://github.com/BurntSushi/bstr/discussions
comment by burntsushi · 2022-09-08 · in A byte string library for Rust -
…the good Debug impl. But it ended up not being worth it sadly. This issue discusses it a bit more: https://github.com/BurntSushi/bstr/issues/5
comment by burntsushi · 2022-09-08 · in A byte string library for Rust -
…segmentation built in via \X. [1]: https://github.com/BurntSushi/aho-corasick/issues/72 [2]: https://github.com/BurntSushi/bstr/blob/e38e7a7ca986f9499b30... [3]: https://github.com/BurntSushi/bstr/blob/e38e7a7ca986f9499b30... [4]:…
comment by burntsushi · 2022-06-27 · in Let's stop ascribing meaning to code points (2017) -
…applicable. (Or, in general, whether SIMD could be used to batch the UTF-8 decoding process.) [1] - https://github.com/BurntSushi/bstr/blob/91edb3fb3e1ef347b30e... [2] - https://lemire.me/blog/2018/05/16/validating-utf-8-strings-u...
comment by burntsushi · 2020-05-03 · in Making Rust as Fast as Go