| 97 | }; |
| 98 | |
| 99 | static bool IsSchemeValid(const std::string& SchemeName) |
| 100 | { |
| 101 | for (auto c : SchemeName) |
| 102 | { |
| 103 | if (!isalpha(c) && c != '+' && c != '-' && c != '.') return false; |
| 104 | } |
| 105 | |
| 106 | return true; |
| 107 | } |
| 108 | |
| 109 | bool clParseURL::GetPort(int* OutPort) const |
| 110 | { |