forked from boostorg/regex
Turn off testing wide character regexes when not appropriate.
This commit is contained in:
@ -68,6 +68,8 @@ void test_captures(const std::string& regx, const std::string& text, T& expected
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(BOOST_NO_WREGEX)
|
||||
|
||||
std::wstring wre(regx.begin(), regx.end());
|
||||
std::wstring wtext(text.begin(), text.end());
|
||||
@ -89,6 +91,8 @@ void test_captures(const std::string& regx, const std::string& text, T& expected
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_HAS_ICU
|
||||
boost::u32regex ure = boost::make_u32regex(regx);
|
||||
|
@ -106,7 +106,9 @@ void test_named_subexpressions(charT)
|
||||
int cpp_main( int , char* [] )
|
||||
{
|
||||
test_named_subexpressions(char(0));
|
||||
#if !defined(BOOST_NO_WREGEX)
|
||||
test_named_subexpressions(wchar_t(0));
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user