forked from boostorg/regex
Don't need the toupper/tolower code any more - problem solved.
[SVN r28542]
This commit is contained in:
@ -212,15 +212,6 @@ void print_ctype_info(charT, const char* name)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void print_format_info()
|
|
||||||
{
|
|
||||||
std::cout << "Checking case conversion for regex_replace formatting." << std::endl;
|
|
||||||
boost::regex_traits_wrapper<boost::c_regex_traits<char> > wrap;
|
|
||||||
std::cout << (wrap.tolower)('A') << " " << (wrap.toupper)('a') << std::endl;
|
|
||||||
std::cout << boost::re_detail::global_lower('A') << " " << boost::re_detail::global_upper('a') << std::endl;
|
|
||||||
std::cout << (char)(std::tolower)('A') << " " << (char)(std::toupper)('a') << std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
int cpp_main(int /*argc*/, char * /*argv*/[])
|
int cpp_main(int /*argc*/, char * /*argv*/[])
|
||||||
{
|
{
|
||||||
print_c_info(char(0), "char");
|
print_c_info(char(0), "char");
|
||||||
@ -250,6 +241,5 @@ int cpp_main(int /*argc*/, char * /*argv*/[])
|
|||||||
print_ctype_info(wchar_t(0), "wchar_t");
|
print_ctype_info(wchar_t(0), "wchar_t");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
print_format_info();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user