2010-06-17 02:34:59 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// <regex>
|
|
|
|
|
|
|
|
// template <class charT> struct regex_traits;
|
|
|
|
|
|
|
|
// locale_type imbue(locale_type l);
|
|
|
|
|
|
|
|
#include <regex>
|
2010-06-21 23:01:43 +02:00
|
|
|
#include <locale>
|
|
|
|
#include <cassert>
|
2010-06-17 02:34:59 +02:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2010-06-21 23:01:43 +02:00
|
|
|
{
|
|
|
|
std::regex_traits<char> t;
|
|
|
|
std::locale loc = t.imbue(std::locale("en_US"));
|
|
|
|
assert(loc.name() == "C");
|
|
|
|
assert(t.getloc().name() == "en_US");
|
|
|
|
}
|
2010-06-17 02:34:59 +02:00
|
|
|
}
|