Lines Matching refs:vr
236 bool parse(const std::string &s, VersionRange *vr) { in parse() argument
246 *vr = VersionRange(minVer.majorVer, minVer.minorVer); in parse()
252 *vr = VersionRange(minVer.majorVer, minVer.minorVer, maxMinor); in parse()
257 std::ostream &operator<<(std::ostream &os, const VersionRange &vr) { in operator <<() argument
258 if (vr.isSingleVersion()) { in operator <<()
259 return os << vr.minVer(); in operator <<()
261 return os << vr.minVer() << "-" << vr.maxMinor; in operator <<()
266 bool parse(const std::string &s, VndkVersionRange *vr) { in parse() argument
275 if (!ParseUint(minVector[0], &vr->sdk) || in parse()
276 !ParseUint(minVector[1], &vr->vndk) || in parse()
277 !ParseUint(minVector[2], &vr->patchMin)) { in parse()
281 vr->patchMax = vr->patchMin; in parse()
284 return ParseUint(v[1], &vr->patchMax); in parse()
288 std::ostream &operator<<(std::ostream &os, const VndkVersionRange &vr) { in operator <<() argument
289 os << vr.sdk << "." << vr.vndk << "." << vr.patchMin; in operator <<()
290 if (!vr.isSingleVersion()) { in operator <<()
291 os << "-" << vr.patchMax; in operator <<()
401 std::string expandInstances(const MatrixHal& req, const VersionRange& vr, bool brace) { in expandInstances() argument
404 req.forEachInstance(vr, [&](const auto& matrixInstance) { in expandInstances()
416 s += toFQNameString(vr, matrixInstance.interface(), instance); in expandInstances()
423 s += "@" + to_string(vr); in expandInstances()
440 for (const auto& vr : req.versionRanges) { in expandInstances() local
444 ss.push_back(expandInstances(req, vr, true /* brace */)); in expandInstances()