MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / StateToWorkq

Method StateToWorkq

extern/re2/re2/dfa.cc:796–809  ·  view source on GitHub ↗

Copies insts in state s to the work queue q.

Source from the content-addressed store, hash-verified

794
795// Copies insts in state s to the work queue q.
796void DFA::StateToWorkq(State* s, Workq* q) {
797 q->clear();
798 for (int i = 0; i < s->ninst_; i++) {
799 if (s->inst_[i] == Mark) {
800 q->mark();
801 } else if (s->inst_[i] == MatchSep) {
802 // Nothing after this is an instruction!
803 break;
804 } else {
805 // Explore from the head of the list.
806 AddToQueue(q, s->inst_[i], s->flag_ & kFlagEmptyMask);
807 }
808 }
809}
810
811// Adds ip to the work queue, following empty arrows according to flag.
812void DFA::AddToQueue(Workq* q, int id, uint32_t flag) {

Callers

nothing calls this directly

Calls 3

AddToQueueFunction · 0.85
clearMethod · 0.45
markMethod · 0.45

Tested by

no test coverage detected