|
Squid Web Cache master
|
#include <IoManip.h>
Public Member Functions | |
| AsHex (const Integer n) | |
| auto & | minDigits (const size_t w) |
| auto & | upperCase (const bool u=true) |
| Print hex digits in upper (or, with a false parameter value, lower) case. | |
Public Attributes | |
| Integer | io_manip |
| the integer to print | |
| std::optional< size_t > | forcePadding |
| std::optional< bool > | forceCase |
| Print hex digits in upper (or, with a false parameter value, lower) case. | |
std::ostream manipulator to print integers and alike as hex numbers. Normally used through the asHex() convenience function.
Sets the minimum number of digits to print. If the integer has fewer digits than the given width, then we also print leading zero(s). Otherwise, this method has no effect.
Definition at line 125 of file IoManip.h.
References AsHex< Integer >::forcePadding.
|
inline |
Definition at line 128 of file IoManip.h.
References AsHex< Integer >::forceCase.
| std::optional<bool> AsHex< Integer >::forceCase |
The default is to use stream's std::uppercase flag.
Definition at line 138 of file IoManip.h.
Referenced by AsHex< Integer >::upperCase().
Sets the minimum number of digits to print. If the integer has fewer digits than the given width, then we also print leading zero(s). Otherwise, this method has no effect. The default is to use stream's field width and stream's fill character.
Definition at line 134 of file IoManip.h.
Referenced by AsHex< Integer >::minDigits().
| Integer AsHex< Integer >::io_manip |