aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-09-30 14:59:58 -0700
committerRobert Schumacher <roschuma@microsoft.com>2016-09-30 14:59:58 -0700
commit17786b865a9f004df391be69e8ad687d095f739b (patch)
tree6c2047da6ac4a4a50775cc7ae7f92218cadd07d1 /toolsrc/include
parent4ab32c520daa821250c6b4669dda7ce91b71d5e7 (diff)
parent8ed88af8c9cf2ed2e6fd573b2cd5dc2b41b55625 (diff)
downloadvcpkg-17786b865a9f004df391be69e8ad687d095f739b.tar.gz
vcpkg-17786b865a9f004df391be69e8ad687d095f739b.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/triplet.h4
-rw-r--r--toolsrc/include/vcpkg_Strings.h6
-rw-r--r--toolsrc/include/vcpkg_paths.h1
3 files changed, 4 insertions, 7 deletions
diff --git a/toolsrc/include/triplet.h b/toolsrc/include/triplet.h
index 23c1ea404..f9d1e9483 100644
--- a/toolsrc/include/triplet.h
+++ b/toolsrc/include/triplet.h
@@ -4,8 +4,6 @@
namespace vcpkg
{
- struct vcpkg_paths;
-
struct triplet
{
static const triplet X86_WINDOWS;
@@ -19,8 +17,6 @@ namespace vcpkg
std::string architecture() const;
std::string system() const;
-
- bool validate(const vcpkg_paths& paths) const;
};
bool operator==(const triplet& left, const triplet& right);
diff --git a/toolsrc/include/vcpkg_Strings.h b/toolsrc/include/vcpkg_Strings.h
index f4b989292..93e1389f8 100644
--- a/toolsrc/include/vcpkg_Strings.h
+++ b/toolsrc/include/vcpkg_Strings.h
@@ -31,7 +31,7 @@ namespace vcpkg {namespace Strings {namespace details
return s;
}
- std::wstring format_internal(const wchar_t* fmtstr, ...);
+ std::wstring wformat_internal(const wchar_t* fmtstr, ...);
}}}
namespace vcpkg {namespace Strings
@@ -44,10 +44,10 @@ namespace vcpkg {namespace Strings
}
template <class...Args>
- std::wstring format(const wchar_t* fmtstr, const Args&...args)
+ std::wstring wformat(const wchar_t* fmtstr, const Args&...args)
{
using vcpkg::Strings::details::to_wprintf_arg;
- return details::format_internal(fmtstr, to_wprintf_arg(to_wprintf_arg(args))...);
+ return details::wformat_internal(fmtstr, to_wprintf_arg(to_wprintf_arg(args))...);
}
std::wstring utf8_to_utf16(const std::string& s);
diff --git a/toolsrc/include/vcpkg_paths.h b/toolsrc/include/vcpkg_paths.h
index 72cba01b7..d13c73b0b 100644
--- a/toolsrc/include/vcpkg_paths.h
+++ b/toolsrc/include/vcpkg_paths.h
@@ -13,6 +13,7 @@ namespace vcpkg
fs::path package_dir(const package_spec& spec) const;
fs::path port_dir(const package_spec& spec) const;
+ bool is_valid_triplet(const triplet& t) const;
std::tr2::sys::path root;
std::tr2::sys::path packages;