~zorba-coders/zorba/trunk

« back to all changes in this revision

Viewing changes to src/util/stream_util.h

  • Committer: Zorba Build Bot
  • Author(s): paul at lucasmail
  • Date: 2013-03-21 19:33:22 UTC
  • mfrom: (11255.2.76 bug-1123162)
  • Revision ID: chillery+buildbot@lambda.nu-20130321193322-6fdtcp5ldf1dhych
Fixed many date/time formatting bugs by completely rewriting the code; added basic support for multiple calendar systems; added default countries-for-languages look-up for locales. Approved: Matthias Brantner, Sorin Marian Nasoi, Nicolae Brinza, Paul J. Lucas

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#include <iostream>
22
22
 
 
23
#include "omanip.h"
23
24
#include "string_util.h"
24
25
 
25
26
namespace zorba {
73
74
std::streamsize read_without_whitespace( std::istream &is, char *buf,
74
75
                                         std::streamsize n );
75
76
 
 
77
/**
 
78
 * Emits an integer as Roman numerals to the given ostream.  By default,
 
79
 * numerals are emitted in lower-case.  To emit in upper-case, set the
 
80
 * \c uppercase format flag on the stream.
 
81
 *
 
82
 * @param o The ostream to emit to.
 
83
 * @param n The integer to emit.
 
84
 * @return Returns \a o.
 
85
 */
 
86
std::ostream& roman( std::ostream &o, unsigned n );
 
87
 
 
88
DEF_OMANIP1( roman, unsigned )
 
89
 
76
90
///////////////////////////////////////////////////////////////////////////////
77
91
 
78
92
} // namespace zorba