]>
Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_int.cpp
1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Andy Rushton
4 // Copyright: (c) Southampton University 1999-2004
5 // (c) Andy Rushton 2004-2009
6 // License: BSD License, see ../docs/license.html
8 ////////////////////////////////////////////////////////////////////////////////
9 #include "print_int.hpp"
10 #include "string_int.hpp"
15 ////////////////////////////////////////////////////////////////////////////////
17 void print_short(std::ostream
& device
, short i
, unsigned radix
, radix_display_t display
, unsigned width
)
18 throw(std::invalid_argument
)
20 device
<< short_to_string(i
, radix
, display
, width
);
23 void print_unsigned_short(std::ostream
& device
, unsigned short i
, unsigned radix
, radix_display_t display
, unsigned width
)
24 throw(std::invalid_argument
)
26 device
<< unsigned_short_to_string(i
, radix
, display
, width
);
29 void print_int(std::ostream
& device
, int i
, unsigned radix
, radix_display_t display
, unsigned width
)
30 throw(std::invalid_argument
)
32 device
<< int_to_string(i
, radix
, display
, width
);
35 void print_unsigned(std::ostream
& device
, unsigned i
, unsigned radix
, radix_display_t display
, unsigned width
)
36 throw(std::invalid_argument
)
38 device
<< unsigned_to_string(i
, radix
, display
, width
);
41 void print_long(std::ostream
& device
, long i
, unsigned radix
, radix_display_t display
, unsigned width
)
42 throw(std::invalid_argument
)
44 device
<< long_to_string(i
, radix
, display
, width
);
47 void print_unsigned_long(std::ostream
& device
, unsigned long i
, unsigned radix
, radix_display_t display
, unsigned width
)
48 throw(std::invalid_argument
)
50 device
<< unsigned_long_to_string(i
, radix
, display
, width
);
53 ////////////////////////////////////////////////////////////////////////////////
55 } // end namespace stlplus
This page took 0.034716 seconds and 4 git commands to generate.