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

Method set_range

regex/src/compile.rs:1016–1022  ·  view source on GitHub ↗
(&mut self, start: u8, end: u8)

Source from the content-addressed store, hash-verified

1014 }
1015
1016 fn set_range(&mut self, start: u8, end: u8) {
1017 debug_assert!(start <= end);
1018 if start > 0 {
1019 self.0[start as usize - 1] = true;
1020 }
1021 self.0[end as usize] = true;
1022 }
1023
1024 fn set_word_boundary(&mut self) {
1025 // We need to mark all ranges of bytes whose pairs result in

Callers 6

cMethod · 0.80
c_class_bytesMethod · 0.80
c_utf8_seq_Method · 0.80
set_word_boundaryMethod · 0.80
byte_classesFunction · 0.80
full_byte_classesFunction · 0.80

Calls

no outgoing calls

Tested by 2

byte_classesFunction · 0.64
full_byte_classesFunction · 0.64