]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/strings/string_bool.cpp
cleanup stlplus files
[chaz/yoink] / src / stlplus / strings / string_bool.cpp
index ee2523181fbe0dc949390d10eedf60b02760386a..9c70090b52e3ac1008964a135785b8313006fa48 100644 (file)
@@ -1,35 +1,35 @@
-////////////////////////////////////////////////////////////////////////////////\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
-//   use the unsigned short representation for bool\r
-\r
-////////////////////////////////////////////////////////////////////////////////\r
-#include "string_bool.hpp"\r
-#include "string_int.hpp"\r
-\r
-namespace stlplus\r
-{\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-\r
-  std::string bool_to_string(bool i, unsigned radix, radix_display_t display, unsigned width)\r
-    throw(std::invalid_argument)\r
-  {\r
-    return unsigned_short_to_string((unsigned short)i, radix, display, width);\r
-  }\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-\r
-  bool string_to_bool(const std::string& str, unsigned radix)\r
-    throw(std::invalid_argument)\r
-  {\r
-    return string_to_unsigned_short(str, radix) != 0;\r
-  }\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-\r
-} // end namespace stlplus\r
+////////////////////////////////////////////////////////////////////////////////
+
+//   Author:    Andy Rushton
+//   Copyright: (c) Southampton University 1999-2004
+//              (c) Andy Rushton           2004-2009
+//   License:   BSD License, see ../docs/license.html
+
+//   use the unsigned short representation for bool
+
+////////////////////////////////////////////////////////////////////////////////
+#include "string_bool.hpp"
+#include "string_int.hpp"
+
+namespace stlplus
+{
+
+  ////////////////////////////////////////////////////////////////////////////////
+
+  std::string bool_to_string(bool i, unsigned radix, radix_display_t display, unsigned width)
+    throw(std::invalid_argument)
+  {
+    return unsigned_short_to_string((unsigned short)i, radix, display, width);
+  }
+
+  ////////////////////////////////////////////////////////////////////////////////
+
+  bool string_to_bool(const std::string& str, unsigned radix)
+    throw(std::invalid_argument)
+  {
+    return string_to_unsigned_short(str, radix) != 0;
+  }
+
+  ////////////////////////////////////////////////////////////////////////////////
+
+} // end namespace stlplus
This page took 0.021732 seconds and 4 git commands to generate.