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

Method Dump

extern/re2/re2/prog.cc:74–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74std::string Prog::Inst::Dump() {
75 switch (opcode()) {
76 default:
77 return StringPrintf("opcode %d", static_cast<int>(opcode()));
78
79 case kInstAlt:
80 return StringPrintf("alt -> %d | %d", out(), out1_);
81
82 case kInstAltMatch:
83 return StringPrintf("altmatch -> %d | %d", out(), out1_);
84
85 case kInstByteRange:
86 return StringPrintf("byte%s [%02x-%02x] %d -> %d",
87 foldcase() ? "/i" : "",
88 lo_, hi_, hint(), out());
89
90 case kInstCapture:
91 return StringPrintf("capture %d -> %d", cap_, out());
92
93 case kInstEmptyWidth:
94 return StringPrintf("emptywidth %#x -> %d",
95 static_cast<int>(empty_), out());
96
97 case kInstMatch:
98 return StringPrintf("match! %d", match_id());
99
100 case kInstNop:
101 return StringPrintf("nop -> %d", out());
102
103 case kInstFail:
104 return StringPrintf("fail");
105 }
106}
107
108Prog::Prog()
109 : anchor_start_(false),

Callers 2

ProgToStringFunction · 0.45
FlattenedProgToStringFunction · 0.45

Calls 5

StringPrintfFunction · 0.85
hintClass · 0.85
FlattenedProgToStringFunction · 0.85
AddToQueueFunction · 0.85
ProgToStringFunction · 0.85

Tested by

no test coverage detected