| 31 | } |
| 32 | |
| 33 | static string MakeRelative(const string &a, const string &b) { |
| 34 | string max = a; |
| 35 | string min = b; |
| 36 | bool first = b.size() > a.size(); |
| 37 | |
| 38 | if (first) { |
| 39 | max = b; |
| 40 | min = a; |
| 41 | } |
| 42 | |
| 43 | auto r = mismatch(min.begin(), min.end(), max.begin()); |
| 44 | return string((first ? r.first : r.second), first ? min.end() : max.end()); |
| 45 | } |
| 46 | |
| 47 | string IGFS::TranslateName(const string &name) const { |
| 48 | StringPiece scheme, namenode, path; |
no test coverage detected