Lines Matching refs:next_si

600         let (mut prev_si, mut next_si) = (self.start, self.start);  in exec_at()
615 while next_si <= STATE_MAX && at < text.len() { in exec_at()
617 prev_si = unsafe { self.next_si(next_si, text, at) }; in exec_at()
620 mem::swap(&mut prev_si, &mut next_si); in exec_at()
623 next_si = unsafe { self.next_si(prev_si, text, at) }; in exec_at()
625 if next_si > STATE_MAX { in exec_at()
628 prev_si = unsafe { self.next_si(next_si, text, at) }; in exec_at()
631 mem::swap(&mut prev_si, &mut next_si); in exec_at()
634 next_si = unsafe { self.next_si(prev_si, text, at) }; in exec_at()
637 if next_si & STATE_MATCH > 0 { in exec_at()
642 next_si &= !STATE_MATCH; in exec_at()
647 self.last_match_si = next_si; in exec_at()
648 prev_si = next_si; in exec_at()
655 let state = self.state(next_si); in exec_at()
668 while (next_si & !STATE_MATCH) == prev_si in exec_at()
672 next_si = unsafe { in exec_at()
673 self.next_si(next_si & !STATE_MATCH, text, at) in exec_at()
680 } else if next_si & STATE_START > 0 { in exec_at()
686 next_si &= !STATE_START; in exec_at()
687 prev_si = next_si; in exec_at()
692 } else if next_si >= STATE_UNKNOWN { in exec_at()
693 if next_si == STATE_QUIT { in exec_at()
708 next_si = match self.next_state(qcur, qnext, prev_si, byte) { in exec_at()
713 debug_assert!(next_si != STATE_UNKNOWN); in exec_at()
714 if next_si & STATE_MATCH > 0 { in exec_at()
715 next_si &= !STATE_MATCH; in exec_at()
720 self.last_match_si = next_si; in exec_at()
722 prev_si = next_si; in exec_at()
724 prev_si = next_si; in exec_at()
762 let (mut prev_si, mut next_si) = (self.start, self.start); in exec_at_reverse()
765 while next_si <= STATE_MAX && at > 0 { in exec_at_reverse()
768 prev_si = unsafe { self.next_si(next_si, text, at) }; in exec_at_reverse()
770 mem::swap(&mut prev_si, &mut next_si); in exec_at_reverse()
774 next_si = unsafe { self.next_si(prev_si, text, at) }; in exec_at_reverse()
775 if next_si > STATE_MAX { in exec_at_reverse()
779 prev_si = unsafe { self.next_si(next_si, text, at) }; in exec_at_reverse()
781 mem::swap(&mut prev_si, &mut next_si); in exec_at_reverse()
785 next_si = unsafe { self.next_si(prev_si, text, at) }; in exec_at_reverse()
787 if next_si & STATE_MATCH > 0 { in exec_at_reverse()
788 next_si &= !STATE_MATCH; in exec_at_reverse()
793 self.last_match_si = next_si; in exec_at_reverse()
794 prev_si = next_si; in exec_at_reverse()
796 while (next_si & !STATE_MATCH) == prev_si && at >= 2 { in exec_at_reverse()
799 next_si = unsafe { in exec_at_reverse()
800 self.next_si(next_si & !STATE_MATCH, text, at) in exec_at_reverse()
806 } else if next_si >= STATE_UNKNOWN { in exec_at_reverse()
807 if next_si == STATE_QUIT { in exec_at_reverse()
813 next_si = match self.next_state(qcur, qnext, prev_si, byte) { in exec_at_reverse()
818 debug_assert!(next_si != STATE_UNKNOWN); in exec_at_reverse()
819 if next_si & STATE_MATCH > 0 { in exec_at_reverse()
820 next_si &= !STATE_MATCH; in exec_at_reverse()
825 self.last_match_si = next_si; in exec_at_reverse()
827 prev_si = next_si; in exec_at_reverse()
829 prev_si = next_si; in exec_at_reverse()
853 unsafe fn next_si(&self, si: StatePtr, text: &[u8], i: usize) -> StatePtr { in next_si() method