static
| 99 | |
| 100 | // static |
| 101 | bool Version::IsValidWildcardString(const std::string& wildcard_string) { |
| 102 | std::string version_string = wildcard_string; |
| 103 | if (EndsWith(wildcard_string.c_str(), ".*", false)) |
| 104 | version_string = wildcard_string.substr(0, wildcard_string.size() - 2); |
| 105 | |
| 106 | Version version(version_string); |
| 107 | return version.IsValid(); |
| 108 | } |
| 109 | |
| 110 | bool Version::IsOlderThan(const std::string& version_str) const { |
| 111 | Version proposed_ver(version_str); |