39 static const char*
const
50 "german_germany.1252",
58 for (
const char*
const *names = locale_names; ; ) {
60 german = std::locale (names [0]);
63 catch (std::runtime_error&) {
79 typedef std::numpunct<char>
Numpunct;
83 const std::locale german (make_german_locale ());
86 const Numpunct &np = std::use_facet<Numpunct>(german);
88 std::cout <<
"German locale"
89 <<
"\nDecimal point = " << np.decimal_point ()
90 <<
"\nThousands separator = " << np.thousands_sep ()
91 <<
"\nTrue name = " << np.truename ()
92 <<
"\nFalse name = " << np.falsename()
95 catch (std::runtime_error&
e) {
97 std::cerr <<
"Caught runtime_error:\n";
98 std::cerr <<
e.what () <<
'\n';
101 std::cerr <<
"Caught an unknown exception\n";
std::numpunct< char > Numpunct