Home | History | Annotate | Download | only in chromeos

Lines Matching defs: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
100 std::string version = lines[i].substr(std::string(prefix).size());
101 if (version.size() > 1 && version[0] == '"' &&
102 version[version.size() - 1] == '"') {
104 version = version.substr(1, version.size() - 2);
106 return version;
116 // version | ...
118 // We don't make any assumption that the spaces between "version" and "|" is
142 std::string version;
146 version = ParseVersion(
150 // TODO(rkc): Fix this once we move to xx.yyy version numbers for Chrome OS
154 if (version.size() > kTrimVersion) {
155 version = version.substr(kTrimVersion);
156 // Strip the major version.
157 size_t first_dot = version.find(".");
159 version = version.substr(first_dot + 1);
170 version += StringPrintf("-%02u.%02u.%02u",
178 version));