mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 00:29:00 +08:00
Use Strings::join() and Strings::format()
This commit is contained in:
parent
dc46f68f6a
commit
c2571cf8bc
@ -7,6 +7,7 @@
|
||||
#include "vcpkg_Dependencies.h"
|
||||
#include "vcpkg_Files.h"
|
||||
#include "vcpkg_Graphs.h"
|
||||
#include "vcpkg_Strings.h"
|
||||
#include "vcpkg_Util.h"
|
||||
#include "vcpkglib.h"
|
||||
|
||||
@ -194,14 +195,8 @@ namespace vcpkg::Dependencies
|
||||
return this->spec.to_string();
|
||||
}
|
||||
|
||||
std::string features;
|
||||
for (auto&& feature : this->feature_list)
|
||||
{
|
||||
features += feature + ",";
|
||||
}
|
||||
features.pop_back();
|
||||
|
||||
return this->spec.name() + "[" + features + "]:" + this->spec.triplet().to_string();
|
||||
const std::string features = Strings::join(",", this->feature_list);
|
||||
return Strings::format("%s[%s]:%s", this->spec.name(), features, this->spec.triplet());
|
||||
}
|
||||
|
||||
bool InstallPlanAction::compare_by_name(const InstallPlanAction* left, const InstallPlanAction* right)
|
||||
|
Loading…
Reference in New Issue
Block a user