More InstallZip refactoring, add options for install directory where applicable

This commit is contained in:
Henrik Rydgård committed 2024-09-10 13:55:12 +02:00
1 parent d3fca5b8eb
commit 10d3b253a4
10 files changed
+117 -39

No files matched your search

+6
View File
@@ -93,6 +93,12 @@ long parseLong(std::string s) {
return value;
}
bool containsNoCase(std::string_view haystack, std::string_view needle) {
auto pred = [](char ch1, char ch2) { return std::toupper(ch1) == std::toupper(ch2); };
auto found = std::search(haystack.begin(), haystack.end(), needle.begin(), needle.end(), pred);
return found != haystack.end();
}
bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list args)
{
int writtenCount = vsnprintf(out, outsize, format, args);