Add wxRegEx::GetLibraryVersionInfo()

This allows to check the version of PCRE used.
This commit is contained in:
Vadim Zeitlin
2021-07-17 20:28:39 +02:00
parent dbe0950384
commit 3415325f4f
4 changed files with 34 additions and 0 deletions

View File

@@ -196,4 +196,13 @@ TEST_CASE("wxRegEx::Unicode", "[regex][unicode]")
CHECK( re.GetMatch(cyrillicSmallA) == cyrillicSmallA );
}
// This pseudo test can be used just to see the version of PCRE being used.
TEST_CASE("wxRegEx::GetLibraryVersionInfo", "[.]")
{
const wxVersionInfo ver = wxRegEx::GetLibraryVersionInfo();
WARN("Using " << ver.GetName() << " " << ver.GetDescription()
<< " (major=" << ver.GetMajor()
<< ", minor=" << ver.GetMinor() << ")");
}
#endif // wxUSE_REGEX