Lines Matching refs:byte
150 /// A byte-oriented character class. This frame is mutated as we descend
155 /// If `allow_invalid_utf8` is disabled (the default), then a byte
208 /// Assert that the current stack frame is a byte class expression and
214 "tried to unwrap byte class \
417 let byte = self.class_literal_byte(x)?;
418 cls.push(hir::ClassBytesRange::new(byte, byte));
632 byte @ hir::Literal::Byte(_) => return Ok(Hir::literal(byte)),
647 /// When Unicode mode is disabled, then a raw byte is returned. If that
648 /// byte is not ASCII and invalid UTF-8 is not allowed, then this returns
654 let byte = match lit.byte() {
656 Some(byte) => byte,
658 if byte <= 0x7F {
659 return Ok(hir::Literal::Unicode(byte as char));
664 Ok(hir::Literal::Byte(byte))
982 /// Return a scalar byte value suitable for use as a literal in a byte
986 hir::Literal::Byte(byte) => Ok(byte),
992 // byte oriented classes. Byte classes don't