Lines Matching full:version
21 // File to look for version number in.
24 // TODO(rkc): Remove once we change over the Chrome OS version format.
34 // Beginning of line we look for that gives full version number.
40 // Same but for short version (x.x.xx.x).
44 // Beginning of line we look for that gives the firmware version.
45 const char VersionLoader::kFirmwarePrefix[] = "version";
94 // Split the lines and look for the one that starts with prefix. The version in ParseVersion()
100 std::string version = lines[i].substr(std::string(prefix).size()); in ParseVersion() local
101 if (version.size() > 1 && version[0] == '"' && in ParseVersion()
102 version[version.size() - 1] == '"') { in ParseVersion()
104 version = version.substr(1, version.size() - 2); in ParseVersion()
106 return version; in ParseVersion()
116 // version | ... in ParseFirmware()
118 // We don't make any assumption that the spaces between "version" and "|" is in ParseFirmware()
142 std::string version; in GetVersion() local
146 version = ParseVersion( in GetVersion()
150 // TODO(rkc): Fix this once we move to xx.yyy version numbers for Chrome OS in GetVersion()
154 if (version.size() > kTrimVersion) { in GetVersion()
155 version = version.substr(kTrimVersion); in GetVersion()
156 // Strip the major version. in GetVersion()
157 size_t first_dot = version.find("."); in GetVersion()
159 version = version.substr(first_dot + 1); in GetVersion()
170 version += StringPrintf("-%02u.%02u.%02u", in GetVersion()
178 version)); in GetVersion()