1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // REQUIRES: locale.en_US.UTF-8
11 // REQUIRES: locale.fr_FR.UTF-8
15 // template <class charT> class numpunct_byname;
17 // char_type thousands_sep() const;
22 #include "platform_support.h" // locale name macros
30 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
31 assert(np.thousands_sep() == ',');
35 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
36 assert(np.thousands_sep() == L',');
40 std::locale l(LOCALE_en_US_UTF_8);
43 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
44 assert(np.thousands_sep() == ',');
48 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
49 assert(np.thousands_sep() == L',');
53 std::locale l(LOCALE_fr_FR_UTF_8);
56 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
57 assert(np.thousands_sep() == ',');
61 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
62 assert(np.thousands_sep() == L',');