| 77 | }; |
| 78 | |
| 79 | static TString CompressPath(const TVector<TStringBuf>& replacements, TStringBuf in) { |
| 80 | for (auto r : replacements) { |
| 81 | TStringBuf from, to; |
| 82 | r.Split('=', from, to); |
| 83 | if (in.StartsWith(from)) { |
| 84 | return Compress(TString(to) + in.SubStr(from.size())); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | return Compress(in); |
| 89 | } |
| 90 | |
| 91 | int main(int argc, char** argv) { |
| 92 | int ind = 0; |