// -*- C++ -*- // Boost general library 'format' --------------------------- // See http://www.boost.org for updates, documentation, and revision history. // (C) Samuel Krempp 2001 // krempp@crans.ens-cachan.fr // Permission to copy, use, modify, sell and // distribute this software is granted provided this copyright notice appears // in all copies. This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. // ideas taken from Rüdiger Loos's format class // and Karl Nelson's ofstream // ---------------------------------------------------------------------------- // internals.hpp : internal structs. included by format.hpp // stream_format_state, and format_item // ---------------------------------------------------------------------------- #ifndef BOOST_FORMAT_INTERNALS_HPP #define BOOST_FORMAT_INTERNALS_HPP #include #include namespace boost { namespace io { namespace detail { // -------------- // set of params that define the format state of a stream struct stream_format_state { typedef std::ios basic_ios; std::
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2018-01-19enable `unsafe` for `test/ufuzz.js` (#2819)...- introduce `unsafe_undefined` - safer `.toString()` compression Miscellaneous - rename `unsafe_Function`Alex Lam S.L
2017-03-05improve `unsafe` on undefined (#1548)...`unsafe` turns undefined keyword into a variable of the same name if found, but that interferes with other related optimisations. Keep track of such transformations to ensure zero information loss in the process.Alex Lam S.L
2017-02-18fix crash in unsafe replacement of undefined...remove extraneous call to AST_SymbolRef.reference() closes #1443 alexlamsl
    ces on several state params. { if(pad_scheme_ & zeropad) { if(ref_state_.flags_ & std::ios::left) { pad_scheme_ = pad_scheme_ & (~zeropad); // ignore zeropad in left alignment } else { ref_state_.fill_='0'; ref_state_.flags_ |= std::ios::internal; } } state_ = ref_state_; } } } } // namespaces boost :: io :: detail #endif // BOOST_FORMAT_INTERNALS_HPP