diff options
author | Michi Henning <michi@zeroc.com> | 2002-07-05 00:22:17 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-07-05 00:22:17 +0000 |
commit | 451058a0f311fea3784812ad8b5759170de35afd (patch) | |
tree | eb1367904c39bea9e5b18290255e6491581da196 /cpp/src/IceUtil/OutputUtil.cpp | |
parent | Fixes from Marc review. (diff) | |
download | ice-451058a0f311fea3784812ad8b5759170de35afd.tar.bz2 ice-451058a0f311fea3784812ad8b5759170de35afd.tar.xz ice-451058a0f311fea3784812ad8b5759170de35afd.zip |
Constant definitions for Slice are complete now. (Code generation for C++
only.) I couldn't avoid adding a few #ifdefs because of the different
64-bit integer APIs across Linux and Windows. (#including config.h
wasn't an option because that would have created a circular dependency
between Ice and Slice.)
Added sufficient test cases to convince myself that things actually work as
intended.
Will compile under Windows now, so bear with me if things are broken under
Windows for a few minutes...
Some things that aren't quite right yet:
- No support for universal character names (\uxxxx)
- gcc appears to have a preprocessor bug. For example, preprocessing a file
containing a single '@' character just echos that '@' character to the
output. According to the C++ spec, '@' should be translated to its
universal character name (because it isn't part of the basic C++ source
character set).
- Why is the Slice string type mapped to std::string? Given that we are
supposed to support unicode for everything, shouldn't that be mapped to
std::wstring?
Once Windows compiles OK, I'll start on the Java code generation.
Diffstat (limited to 'cpp/src/IceUtil/OutputUtil.cpp')
-rw-r--r-- | cpp/src/IceUtil/OutputUtil.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/OutputUtil.cpp b/cpp/src/IceUtil/OutputUtil.cpp index 1759f8bec88..553ff6cf775 100644 --- a/cpp/src/IceUtil/OutputUtil.cpp +++ b/cpp/src/IceUtil/OutputUtil.cpp @@ -188,6 +188,42 @@ IceUtil::OutputBase::operator!() const return !_out; } +streamsize +IceUtil::OutputBase::width() const +{ + return _out.width(); +} + +streamsize +IceUtil::OutputBase::width(streamsize newWidth) +{ + return _out.width(newWidth); +} + +ios_base::fmtflags +IceUtil::OutputBase::flags() const +{ + return _out.flags(); +} + +ios_base::fmtflags +IceUtil::OutputBase::flags(ios_base::fmtflags newFlags) +{ + return _out.flags(newFlags); +} + +ostream::char_type +IceUtil::OutputBase::fill() const +{ + return _out.fill(); +} + +ostream::char_type +IceUtil::OutputBase::fill(ostream::char_type newFill) +{ + return _out.fill(newFill); +} + // ---------------------------------------------------------------------- // Output // ---------------------------------------------------------------------- |