Update libraries and make it build on windows.

Still gets some warnings because compilers have changed. But should work.
This commit is contained in:
Sandu Liviu Catalin committed 2025-06-25 22:34:23 +03:00
1 parent 520a5eacc5
commit f2b7499f85
3038 files changed
+251668 -273857

No files matched your search

+28
View File
@@ -14,6 +14,7 @@
#include "Poco/Any.h"
#include "Poco/Format.h"
#include "Poco/Exception.h"
#include <string_view>
using Poco::format;
@@ -416,6 +417,32 @@ void FormatTest::testString()
}
void FormatTest::testStringView()
{
std::string_view foo("foo");
std::string s(format("%v", foo));
assertTrue (s == "foo");
s = format("%5v", foo);
assertTrue (s == " foo");
s = format("%-5v", foo);
assertTrue (s == "foo ");
s = format("%*v", 5, foo);
assertTrue (s == " foo");
s = format("%-*v", 5, foo);
assertTrue (s == "foo ");
s = format("%v%%a", foo);
assertTrue (s == "foo%a");
s = format("'%v%%''%v%%'", foo, foo);
assertTrue (s == "'foo%''foo%'");
}
void FormatTest::testMultiple()
{
std::string s(format("aaa%dbbb%4dccc", 1, 2));
@@ -496,6 +523,7 @@ CppUnit::Test* FormatTest::suite()
CppUnit_addTest(pSuite, FormatTest, testFloatFix);
CppUnit_addTest(pSuite, FormatTest, testFloatSci);
CppUnit_addTest(pSuite, FormatTest, testString);
CppUnit_addTest(pSuite, FormatTest, testStringView);
CppUnit_addTest(pSuite, FormatTest, testMultiple);
CppUnit_addTest(pSuite, FormatTest, testIndex);
CppUnit_addTest(pSuite, FormatTest, testAny);