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

Method num_byte_classes

regex/src/dfa.rs:1548–1551  ·  view source on GitHub ↗

Returns the number of byte classes required to discriminate transitions in each state. invariant: num_byte_classes() == len(State.next)

(&self)

Source from the content-addressed store, hash-verified

1546 ///
1547 /// invariant: num_byte_classes() == len(State.next)
1548 fn num_byte_classes(&self) -> usize {
1549 // We add 1 to account for the special EOF byte.
1550 (self.prog.byte_classes[255] as usize + 1) + 1
1551 }
1552
1553 /// Given an input byte or the special EOF sentinel, return its
1554 /// corresponding byte class.

Callers 1

byte_classMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected