14 Aug
2013
14 Aug
'13
9:09 a.m.
The "Ü" is treated as upper case if std::locale treats it as upper case - I would sort of expect that to be the case - but apparently not :-(
Hi John, thanks for std::locale hint! This piece of code does now work: std::setlocale(LC_ALL, ""); boost::wregex condition; condition.imbue(std::locale("")); condition.assign(L"\\p{u}"); std::wstring test_word(L"Ü"); if (boost::regex_match(test_word, condition)) { std::wcout << L"Matches!" << std::endl; } Regards, Stefan