]> git.lyx.org Git - lyx.git/blobdiff - src/support/numpunct_lyx_char_type.h
Expose python 3 support to some testing
[lyx.git] / src / support / numpunct_lyx_char_type.h
index d5b339b7ce1bdb6f6d98adf5ae936fac0cae01bd..7ec661c29fd786f55c5dc8ad34a4c11ea5aa015d 100644 (file)
@@ -1,59 +1,58 @@
-// -*- C++ -*-\r
-/**\r
- * \file numpunct_lyx_char_type.h\r
- * This file is part of LyX, the document processor.\r
- * Licence details can be found in the file COPYING.\r
- *\r
- * \author Peter Kümmel\r
- *\r
- * Full author contact details are available in file CREDITS.\r
- */\r
-\r
-#ifndef LYX_NUMPUNCT_LYX_CHAR_TYPE_H\r
-#define LYX_NUMPUNCT_LYX_CHAR_TYPE_H\r
-\r
-\r
-#include <locale>\r
-\r
-\r
-namespace std\r
-{\r
-\r
-       template<>\r
-       class numpunct<lyx::char_type> : public numpunct<char>\r
-       {\r
-       public:\r
-\r
-               typedef lyx::char_type char_type;\r
-               typedef basic_string<lyx::char_type> string_type;\r
-\r
-               static locale::id id;\r
-\r
-               explicit numpunct(size_t __refs = 0) : numpunct<char>(__refs)\r
-               {}\r
-\r
-               char_type decimal_point() const\r
-               { return numpunct<char>::decimal_point(); }\r
-\r
-               char_type thousands_sep() const\r
-               { return numpunct<char>::thousands_sep(); }\r
-\r
-               string grouping() const\r
-               { return numpunct<char>::grouping(); }\r
-\r
-               string_type truename() const\r
-               { return lyx::from_ascii(numpunct<char>::truename()); }\r
-\r
-               string_type falsename() const\r
-               { return lyx::from_ascii(numpunct<char>::falsename()); }\r
-\r
-\r
-       protected:\r
-               virtual ~numpunct();\r
-\r
-       };\r
-\r
-\r
-\r
-}\r
-#endif\r
+// -*- C++ -*-
+/**
+ * \file numpunct_lyx_char_type.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Peter Kümmel
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#ifndef LYX_NUMPUNCT_LYX_CHAR_TYPE_H
+#define LYX_NUMPUNCT_LYX_CHAR_TYPE_H
+
+
+#include <locale>
+
+
+namespace std
+{
+
+       template<>
+       class numpunct<lyx::char_type> : public numpunct<char>
+       {
+       public:
+
+               typedef lyx::char_type char_type;
+               typedef basic_string<lyx::char_type> string_type;
+
+               static locale::id id;
+
+               explicit numpunct(size_t __refs = 0) : numpunct<char>(__refs)
+               {}
+
+               char_type decimal_point() const
+               { return numpunct<char>::decimal_point(); }
+
+               char_type thousands_sep() const
+               { return numpunct<char>::thousands_sep(); }
+
+               string grouping() const
+               { return numpunct<char>::grouping(); }
+
+               // Implementation can be found in docstream.cpp
+               string_type truename() const;
+               string_type falsename() const;
+
+
+       protected:
+               virtual ~numpunct();
+
+       };
+
+       // Fixed in VC11:
+       // http://connect.microsoft.com/VisualStudio/feedback/details/572376/msvc10-c-std-numpunct-has-a-hardcoded-dllimport-in-definition
+
+}
+#endif