3 * \file numpunct_lyx_char_type.h
\r
4 * This file is part of LyX, the document processor.
\r
5 * Licence details can be found in the file COPYING.
\r
7 * \author Peter Kümmel
\r
9 * Full author contact details are available in file CREDITS.
\r
12 #ifndef LYX_NUMPUNCT_LYX_CHAR_TYPE_H
\r
13 #define LYX_NUMPUNCT_LYX_CHAR_TYPE_H
\r
23 class numpunct<lyx::char_type> : public locale::facet
\r
27 typedef lyx::char_type char_type;
\r
28 typedef basic_string<lyx::char_type> string_type;
\r
31 static locale::id id;
\r
33 explicit numpunct(size_t __refs = 0) : chared(__refs)
\r
36 char_type decimal_point() const
\r
37 { return chared.decimal_point(); }
\r
39 char_type thousands_sep() const
\r
40 { return chared.thousands_sep(); }
\r
42 string grouping() const
\r
43 { return chared.grouping(); }
\r
45 string_type truename() const
\r
46 { return lyx::from_ascii(chared.truename()); }
\r
48 string_type falsename() const
\r
49 { return lyx::from_ascii(chared.falsename()); }
\r
53 virtual ~numpunct();
\r
57 numpunct<char> chared;
\r