Add wxRegEx::GetLibraryVersionInfo()
This allows to check the version of PCRE used.
This commit is contained in:
parent
dbe0950384
commit
3415325f4f
4 changed files with 34 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue