]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/strings/string_inf.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / string_inf.hpp
diff --git a/src/stlplus/strings/string_inf.hpp b/src/stlplus/strings/string_inf.hpp
new file mode 100644 (file)
index 0000000..1543263
--- /dev/null
@@ -0,0 +1,40 @@
+#ifndef STLPLUS_STRING_INF\r
+#define STLPLUS_STRING_INF\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
+//   String conversion functions for the infinite precision integer type inf\r
+\r
+//   The conversion supports all the formatting modes defined on format_types\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+#include "strings_fixes.hpp"\r
+#include "inf.hpp"\r
+#include "format_types.hpp"\r
+#include <string>\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+namespace stlplus\r
+{\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+\r
+  // conversion TO string\r
+  std::string inf_to_string(const inf&,\r
+                            unsigned radix = 10,\r
+                            radix_display_t display = radix_c_style_or_hash,\r
+                            unsigned width = 0)\r
+    throw(std::invalid_argument);\r
+\r
+  // conversion FROM string\r
+  inf string_to_inf(const std::string&,\r
+                    unsigned radix = 0)\r
+    throw(std::invalid_argument);\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+} // end namespace stlplus\r
+#endif\r
This page took 0.022302 seconds and 4 git commands to generate.