]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/string_inf.hpp
cleanup stlplus files
[chaz/yoink] / src / stlplus / strings / string_inf.hpp
1 #ifndef STLPLUS_STRING_INF
2 #define STLPLUS_STRING_INF
3 ////////////////////////////////////////////////////////////////////////////////
4
5 // Author: Andy Rushton
6 // Copyright: (c) Southampton University 1999-2004
7 // (c) Andy Rushton 2004-2009
8 // License: BSD License, see ../docs/license.html
9
10 // String conversion functions for the infinite precision integer type inf
11
12 // The conversion supports all the formatting modes defined on format_types
13
14 ////////////////////////////////////////////////////////////////////////////////
15 #include "strings_fixes.hpp"
16 #include "inf.hpp"
17 #include "format_types.hpp"
18 #include <string>
19 ////////////////////////////////////////////////////////////////////////////////
20
21 namespace stlplus
22 {
23
24 ////////////////////////////////////////////////////////////////////////////////
25
26 // conversion TO string
27 std::string inf_to_string(const inf&,
28 unsigned radix = 10,
29 radix_display_t display = radix_c_style_or_hash,
30 unsigned width = 0)
31 throw(std::invalid_argument);
32
33 // conversion FROM string
34 inf string_to_inf(const std::string&,
35 unsigned radix = 0)
36 throw(std::invalid_argument);
37
38 ////////////////////////////////////////////////////////////////////////////////
39 } // end namespace stlplus
40 #endif
This page took 0.036729 seconds and 4 git commands to generate.