MCPcopy Create free account
hub / github.com/davidblewett/rure-python / byte_class

Method byte_class

regex/src/dfa.rs:1556–1561  ·  view source on GitHub ↗
(&self, b: Byte)

Source from the content-addressed store, hash-verified

1554 /// corresponding byte class.
1555 #[inline(always)]
1556 fn byte_class(&self, b: Byte) -> usize {
1557 match b.as_byte() {
1558 None => self.num_byte_classes() - 1,
1559 Some(b) => self.u8_class(b),
1560 }
1561 }
1562
1563 /// Like byte_class, but explicitly for u8s.
1564 #[inline(always)]

Callers 3

exec_byteMethod · 0.80
next_stateMethod · 0.80
add_stateMethod · 0.80

Calls 3

as_byteMethod · 0.80
num_byte_classesMethod · 0.80
u8_classMethod · 0.80

Tested by

no test coverage detected