Finished [re.traits]. I'd like to acknowledge the help of Bjorn Reese with <regex>.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@106478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,8 +14,21 @@
|
||||
// locale_type getloc()const;
|
||||
|
||||
#include <regex>
|
||||
#include <cassert>
|
||||
|
||||
int main()
|
||||
{
|
||||
#error getloc not implemented
|
||||
{
|
||||
std::regex_traits<char> t1;
|
||||
assert(t1.getloc().name() == "C");
|
||||
std::regex_traits<wchar_t> t2;
|
||||
assert(t2.getloc().name() == "C");
|
||||
}
|
||||
{
|
||||
std::locale::global(std::locale("en_US"));
|
||||
std::regex_traits<char> t1;
|
||||
assert(t1.getloc().name() == "en_US");
|
||||
std::regex_traits<wchar_t> t2;
|
||||
assert(t2.getloc().name() == "en_US");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user