| 10 | } |
| 11 | |
| 12 | bool SplitUserInfo(TStringBuf& path, TStringBuf& userInfo, bool mayHaveSpecificUserInfo) { |
| 13 | const size_t pos = path.find_first_of(mayHaveSpecificUserInfo ? TStringBuf("?@") : TStringBuf("?@/")); |
| 14 | |
| 15 | if (TStringBuf::npos != pos && '@' == path[pos]) { |
| 16 | if (mayHaveSpecificUserInfo) { |
| 17 | if (!(path.StartsWith("cert=") || path.StartsWith("key="))) { |
| 18 | return false; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | path.SplitAt(pos, userInfo, path); |
| 23 | path.Skip(1); |
| 24 | } |
| 25 | |
| 26 | return true; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | TParsedLocation::TParsedLocation(TStringBuf path) { |
no test coverage detected