| 303 | } |
| 304 | |
| 305 | static inline TString GetFile(const TString& s) { |
| 306 | const char* e = s.end(); |
| 307 | const char* b = s.begin(); |
| 308 | const char* c = e - 1; |
| 309 | |
| 310 | while (c != b && !IsDelim(*c)) { |
| 311 | --c; |
| 312 | } |
| 313 | |
| 314 | if (c != e && IsDelim(*c)) { |
| 315 | ++c; |
| 316 | } |
| 317 | |
| 318 | return TString(c, e - c); |
| 319 | } |
| 320 | |
| 321 | static inline TString Fix(TString f) { |
| 322 | if (!f.empty() && IsDelim(f[f.size() - 1])) { |
no test coverage detected