|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-12-13 06:30:43
Hi Alexander,
Similar work has come up for discussion on this list numerous times. The
most recent time, it even came with code from Samuel Krempp
<krempp_at_[hidden]>. Unfortunately, after generating much
discussion and interest, the work was never formally reviewed for
acceptance. Clearly, there would be lots of interest in such a thing. I
suggest that you review this thread:
http://groups.yahoo.com/group/boost/messagesearch/14108?query=Review%20%3A%2
0format2%2C%20yet%20another%20%27printf%20class%27%20
and
http://groups.yahoo.com/group/boost/messagesearch/16544?query=Review%20%3A%2
0format2%2C%20yet%20another%20%27printf%20class%27%20
and the code/documentation at:
http://groups.yahoo.com/group/boost/files/format2/
to get an idea of what people are looking for in such a library.
-Dave
----- Original Message -----
From: "vonosan" <alnsn_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, December 13, 2001 3:50 AM
Subject: [boost] formatter
> Hello,
> Is any interest of putting my formatter class into the boost library?
> Below is a brief description of this class:
>
> Class formatter is designed to format in ostream manner
> with internationalization issues taken in mind.
>
> First example:
> formatter fmt ( "reverse of (%0,%1,%2) is (%2,%1,%0)" );
> fmt << '0' << 1 << "two";
> assert ( fmt.str () == "reverse of (0,1,two) is (two,1,0)" );
>
> Second example:
> formatter fmt ( "{12.5E%0}" );
> fmt << complex ( 0, 1 );
> string str = fmt.str ();
>
> This code do such thing:
> ostringstream oss;
> oss << sew ( 12 )
> << setprecision ( 5 )
> << scientific
> << uppercase
> << complex ( 0, 1 );
> string str = oss.str ();
>
> -----------------
> Alexander Nasonov
> a_l_n_s_n_at_m_a_i_l.ru (remove all _ characters)
>
>
>
> Info: http://www.boost.org Send unsubscribe requests to:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk