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

Method DumpByteMap

extern/re2/re2/prog.cc:182–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182std::string Prog::DumpByteMap() {
183 std::string map;
184 for (int c = 0; c < 256; c++) {
185 int b = bytemap_[c];
186 int lo = c;
187 while (c < 256-1 && bytemap_[c+1] == b)
188 c++;
189 int hi = c;
190 map += StringPrintf("[%02x-%02x] -> %d\n", lo, hi, b);
191 }
192 return map;
193}
194
195// Is ip a guaranteed match at end of text, perhaps after some capturing?
196static bool IsMatch(Prog* prog, Prog::Inst* ip) {

Callers 2

DEFINE_FLAGFunction · 0.80
DumpByteMapFunction · 0.80

Calls 1

StringPrintfFunction · 0.85

Tested by 2

DEFINE_FLAGFunction · 0.64
DumpByteMapFunction · 0.64