| 76 | } |
| 77 | |
| 78 | bool FindExact(const TStringBuf key, TString* out) const override { |
| 79 | if (auto res = find(ToK(key)); res != end()) { |
| 80 | // temporary |
| 81 | // https://st.yandex-team.ru/DEVTOOLS-3985 |
| 82 | try { |
| 83 | *out = Decompress(res->second->second); |
| 84 | } catch (const yexception& e) { |
| 85 | if (GetEnv("RESOURCE_DECOMPRESS_DIAG")) { |
| 86 | Cerr << "Can't decompress resource " << key << Endl << e.what() << Endl; |
| 87 | } |
| 88 | throw e; |
| 89 | } |
| 90 | |
| 91 | return true; |
| 92 | } |
| 93 | |
| 94 | return false; |
| 95 | } |
| 96 | |
| 97 | void FindMatch(const TStringBuf subkey, IMatch& cb) const override { |
| 98 | for (const auto& it : D_) { |
nothing calls this directly
no test coverage detected