xref: /third_party/rust/crates/os_str_bytes/src/util.rs
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/os_str_bytes/src/
1cdb3e2c8Sopenharmony_cipub(super) const BYTE_SHIFT: u8 = 6;
2cdb3e2c8Sopenharmony_ci
3cdb3e2c8Sopenharmony_cipub(super) const CONT_MASK: u8 = (1 << BYTE_SHIFT) - 1;
4cdb3e2c8Sopenharmony_ci
5cdb3e2c8Sopenharmony_cipub(super) const CONT_TAG: u8 = 0b1000_0000;
6cdb3e2c8Sopenharmony_ci
7cdb3e2c8Sopenharmony_cipub(super) const fn is_continuation(byte: u8) -> bool {
8cdb3e2c8Sopenharmony_ci    byte & !CONT_MASK == CONT_TAG
9cdb3e2c8Sopenharmony_ci}
10

Indexes created Thu Nov 07 10:32:03 CST 2024