forked from boostorg/regex
Turn off testing wide character regexes when not appropriate.
This commit is contained in:
@ -367,16 +367,9 @@ int main(int argc, char**argv)
|
||||
}
|
||||
|
||||
#if defined(_WIN32) && defined(BOOST_REGEX_USE_WIN32_LOCALE) && !defined(UNDER_CE)
|
||||
#if !defined(BOOST_EMBTC)
|
||||
#pragma comment(lib, "user32.lib")
|
||||
#else
|
||||
#pragma comment(lib, "user32.a")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -69,6 +69,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());
|
||||
boost::wregex we(wre);
|
||||
@ -90,6 +92,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);
|
||||
what = boost::smatch();
|
||||
|
@ -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