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