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 // string grouping() const;
19 // TODO: investigation needed
25 #include "platform_support.h" // locale name macros
33 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
34 assert(np.grouping() == "");
38 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
39 assert(np.grouping() == "");
43 std::locale l(LOCALE_en_US_UTF_8);
46 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
47 assert(np.grouping() == "\3\3");
51 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
52 assert(np.grouping() == "\3\3");
56 std::locale l(LOCALE_fr_FR_UTF_8);
59 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
60 assert(np.grouping() == "\x7F");
64 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
65 assert(np.grouping() == "\x7F");