|
Boost : |
From: Samuel Krempp (krempp_at_[hidden])
Date: 2001-06-29 20:33:34
ahem, "%N " was too error-prone,
after many tries, I settled on %N%
so it becomes :
BEFORE> format("%1 bla") % BLA gives : BLAbla
format("%1% bla") % BLA gives : BLA bla
string s = format(" %5%. %5$=6s . %1% format %5%, c'%3% %1% %2%.\n")
%"le" %"bonheur" %"est" %"trop" * setfill('_') %"bref";
cerr << s;
assert( s == " bref. _bref_ . le format bref, c'est le bonheur.\n");
version is now 1.7
(because of my many hesitations on the char to use :} )
-- Sam
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk