Lines Matching refs:slots
424 /// Returns the number of capture slots in the regular expression. (There
425 /// are two slots for every capture group, corresponding to possibly empty
584 /// The number of capture slots given should be equal to the total number
585 /// of capture slots in the compiled program.
587 /// Note that the first two slots always correspond to the start and end
595 let slots = locs.as_slots();
596 for slot in slots.iter_mut() {
601 match slots.len() {
605 slots[0] = Some(s);
606 slots[1] = Some(e);
621 slots,
631 self.captures_nfa(slots, text, start)
636 slots,
643 self.captures_nfa(slots, text, start)
653 slots,
659 dfa::Result::Quit => self.captures_nfa(slots, text, start),
667 slots,
673 dfa::Result::Quit => self.captures_nfa(slots, text, start),
677 self.captures_nfa_type(ty, slots, text, start, text.len())
949 let mut slots = [None, None];
953 &mut slots,
960 slots[1]
973 let mut slots = [None, None];
977 &mut slots,
984 match (slots[0], slots[1]) {
995 /// `slots` should have length equal to `2 * nfa.captures.len()`.
999 slots: &mut [Slot],
1005 slots,
1016 slots: &mut [Slot],
1024 slots,
1031 match (slots[0], slots[1]) {
1044 slots: &mut [Slot],
1065 slots,
1072 self.exec_backtrack(matches, slots, text, start, end)
1080 slots: &mut [Slot],
1091 slots,
1102 slots,
1115 slots: &mut [Slot],
1125 slots,
1135 slots,