Hacker GitHub

← All repos

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

Mentions per year 9 mentions · busiest year 2022 (4)
20082026
  1. Either Vec<u8> or https://github.com/BurntSushi/bstr
  2. …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
  3. …https://docs.rs/bstr/latest/bstr/#handling-of-invalid-utf-8 NSFL regex that implements word breaking: https://github.com/BurntSushi/bstr/blob/86947727666d7b21c97e...
  4. …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
  5. …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
  6. …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
  7. …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]:…
  8. …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