14 #ifndef BOOST_FORMAT_INTERNALS_HPP 15 #define BOOST_FORMAT_INTERNALS_HPP 33 template<
class Ch,
class Tr>
47 { apply_manip_body<Ch, Tr, T>( *
this, manipulator) ; }
63 template<
class Ch,
class Tr,
class Alloc>
66 enum pad_values { zeropad = 1, spacepad =2, centered=4, tabulation = 8 };
79 truncate_(max_streamsize()), pad_scheme_(0) {}
81 void compute_states();
84 return (std::numeric_limits<std::streamsize>::max)();
104 template<
class Ch,
class Tr>
108 #if !defined(BOOST_NO_STD_LOCALE) 112 os.imbue(*loc_default);
128 template<
class Ch,
class Tr>
140 template<
class Ch,
class Tr,
class T>
147 self.set_by_stream( ss );
150 template<
class Ch,
class Tr>
inline 155 flags_ = std::ios_base::dec | std::ios_base::skipws;
164 template<
class Ch,
class Tr,
class Alloc>
167 argN_=argN_no_posit; truncate_ = max_streamsize(); pad_scheme_ =0;
168 res_.resize(0); appendix_.resize(0);
169 fmtstate_.reset(fill);
172 template<
class Ch,
class Tr,
class Alloc>
177 if(pad_scheme_ & zeropad) {
182 pad_scheme_ = pad_scheme_ & (~zeropad);
185 pad_scheme_ &= ~spacepad;
187 fmtstate_.flags_ = (fmtstate_.flags_ & ~
std::ios_base::adjustfield)
188 | std::ios_base::internal;
192 if(pad_scheme_ & spacepad) {
193 if(fmtstate_.flags_ & std::ios_base::showpos)
194 pad_scheme_ &= ~spacepad;
202 #endif // BOOST_FORMAT_INTERNALS_HPP
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
void apply_manip_body(stream_format_state< Ch, Tr > &self, T manipulator)
reference_const_type get() const
BOOST_IO_STD locale locale_t
#define BOOST_ASSERT(expr)