// -*- 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 (also took its parsing code as basis for printf parsing) // ------------------------------------------------------------------------------ // free_funcs.hpp : implementation of the free functions declared in namespace format // ------------------------------------------------------------------------------ #ifndef BOOST_FORMAT_FUNCS_HPP #define BOOST_FORMAT_FUNCS_HPP #include "boost/format.hpp" #include "boost/throw_exception.hpp" namespace boost { namespace io { inline std::string str(const basic_format& f) // adds up all pieces of strings and converted items, and return the formatted string { return f.str(); } } // - namespace io BOOST_IO_STD ostream& operator<<( BOOST_IO_STD ostream& os, const boost::basic_format& f) // effect: "return os << str(f);" but we can try to do it faster { typedef boost::basic_format format_t; if(f.items_.size()==0) os << f.prefix_; else { if(f.cur_arg_ < f.num_args_) if( f.exceptions() & io::too_few_args_bit ) boost::throw_exception(io::too_few_args()); // not enough variables have been supplied ! if(f.style_ & format_t::special_needs) os << f.str(); else { // else we dont have to count chars output, so we dump directly to os : os << f.prefix_; for(unsigned long i=0; ignu/packages/irc.scm
AgeCommit message (Expand)Author
2017-01-15gnu: weechat: Update to 1.7....Tobias Geerinckx-Rice
2017-01-05gnu: irssi: Update to 1.0.0....Marius Bakke
2016-12-20gnu: weechat: Use new xz-compressed tarball....Tobias Geerinckx-Rice
2016-12-13gnu: epic5: Fix 'license' field to contain only licenses....Ludovic Courtès
2016-12-08gnu: Add epic5....ng0
2016-10-26Merge branch 'master' into core-updatesLeo Famulari
2016-10-23gnu: weechat: Update to 1.6....ng0
2016-10-12Merge branch 'master' into core-updatesMark H Weaver
2016-10-09gnu: Add limnoria....ng0
2016-09-30Merge branch 'master' into core-updatesLudovic Courtès
2016-09-28gnu: Add and use gettext-minimal....Alex Kost
2016-09-22gnu: irssi: Update to 0.8.20 [fixes CVE-2016-{7044,7045}]....Leo Famulari
2016-09-16doc: "filesystem" -> "file system"...John Darrington
2016-08-11gnu: Add sic....ng0
2016-08-07gnu: Add ii....ng0
2016-08-05gnu: Add ircii....ng0
2016-07-07gnu: quassel: Build with modular qt....Efraim Flashner
2016-06-09gnu: weechat: Update to 1.5....ng0
2016-04-27gnu: quassel: Update to 0.12.4....Efraim Flashner