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

Method IsCachedRuneByteSuffix

extern/re2/re2/compile.cc:469–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469bool Compiler::IsCachedRuneByteSuffix(int id) {
470 uint8_t lo = inst_[id].lo_;
471 uint8_t hi = inst_[id].hi_;
472 bool foldcase = inst_[id].foldcase() != 0;
473 int next = inst_[id].out();
474
475 uint64_t key = MakeRuneCacheKey(lo, hi, foldcase, next);
476 return rune_cache_.find(key) != rune_cache_.end();
477}
478
479void Compiler::AddSuffix(int id) {
480 if (failed_)

Callers

nothing calls this directly

Calls 5

MakeRuneCacheKeyFunction · 0.85
foldcaseMethod · 0.80
outMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected