]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/strings/string_float.hpp
cleanup stlplus files
[chaz/yoink] / src / stlplus / strings / string_float.hpp
index 797d4a4d04014b930c003185b2ffcf6c05ed7d2f..578225f15476efec0b051e096e0d1dddf26d62c9 100644 (file)
@@ -1,55 +1,55 @@
-#ifndef STLPLUS_STRING_FLOAT\r
-#define STLPLUS_STRING_FLOAT\r
-////////////////////////////////////////////////////////////////////////////////\r
-\r
-//   Author:    Andy Rushton\r
-//   Copyright: (c) Southampton University 1999-2004\r
-//              (c) Andy Rushton           2004-2009\r
-//   License:   BSD License, see ../docs/license.html\r
-\r
-//   Convert a float/double to/from string\r
-\r
-////////////////////////////////////////////////////////////////////////////////\r
-#include "strings_fixes.hpp"\r
-#include "format_types.hpp"\r
-#include <string>\r
-#include <stdexcept>\r
-\r
-namespace stlplus\r
-{\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-  // convert a real type to string\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-\r
-  // Only decimal radix is supported\r
-\r
-  // The way in which the number is displayed is defined in radix_types.hpp\r
-  // Using any other value for the display type causes std::invalid_argument to be thrown\r
-\r
-  std::string float_to_string(float f,\r
-                              real_display_t display = display_mixed,\r
-                              unsigned width = 0,\r
-                              unsigned precision = 6)\r
-    throw(std::invalid_argument);\r
-\r
-  std::string double_to_string(double f,\r
-                               real_display_t display = display_mixed,\r
-                               unsigned width = 0,\r
-                               unsigned precision = 6)\r
-    throw(std::invalid_argument);\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-  // Convert a string to a floating-point type\r
-\r
-  float string_to_float(const std::string& value)\r
-    throw(std::invalid_argument);\r
-\r
-  double string_to_double(const std::string& value)\r
-    throw(std::invalid_argument);\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-\r
-} // end namespace stlplus\r
-\r
-#endif\r
+#ifndef STLPLUS_STRING_FLOAT
+#define STLPLUS_STRING_FLOAT
+////////////////////////////////////////////////////////////////////////////////
+
+//   Author:    Andy Rushton
+//   Copyright: (c) Southampton University 1999-2004
+//              (c) Andy Rushton           2004-2009
+//   License:   BSD License, see ../docs/license.html
+
+//   Convert a float/double to/from string
+
+////////////////////////////////////////////////////////////////////////////////
+#include "strings_fixes.hpp"
+#include "format_types.hpp"
+#include <string>
+#include <stdexcept>
+
+namespace stlplus
+{
+
+  ////////////////////////////////////////////////////////////////////////////////
+  // convert a real type to string
+  ////////////////////////////////////////////////////////////////////////////////
+
+  // Only decimal radix is supported
+
+  // The way in which the number is displayed is defined in radix_types.hpp
+  // Using any other value for the display type causes std::invalid_argument to be thrown
+
+  std::string float_to_string(float f,
+                              real_display_t display = display_mixed,
+                              unsigned width = 0,
+                              unsigned precision = 6)
+    throw(std::invalid_argument);
+
+  std::string double_to_string(double f,
+                               real_display_t display = display_mixed,
+                               unsigned width = 0,
+                               unsigned precision = 6)
+    throw(std::invalid_argument);
+
+  ////////////////////////////////////////////////////////////////////////////////
+  // Convert a string to a floating-point type
+
+  float string_to_float(const std::string& value)
+    throw(std::invalid_argument);
+
+  double string_to_double(const std::string& value)
+    throw(std::invalid_argument);
+
+  ////////////////////////////////////////////////////////////////////////////////
+
+} // end namespace stlplus
+
+#endif
This page took 0.021919 seconds and 4 git commands to generate.