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

Method CachedRuneByteSuffix

extern/re2/re2/compile.cc:458–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458int Compiler::CachedRuneByteSuffix(uint8_t lo, uint8_t hi, bool foldcase,
459 int next) {
460 uint64_t key = MakeRuneCacheKey(lo, hi, foldcase, next);
461 std::unordered_map<uint64_t, int>::const_iterator it = rune_cache_.find(key);
462 if (it != rune_cache_.end())
463 return it->second;
464 int id = UncachedRuneByteSuffix(lo, hi, foldcase, next);
465 rune_cache_[key] = id;
466 return id;
467}
468
469bool Compiler::IsCachedRuneByteSuffix(int id) {
470 uint8_t lo = inst_[id].lo_;

Callers

nothing calls this directly

Calls 3

MakeRuneCacheKeyFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected