From 451058a0f311fea3784812ad8b5759170de35afd Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Fri, 5 Jul 2002 00:22:17 +0000 Subject: 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. --- cpp/src/IceUtil/OutputUtil.cpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'cpp/src/IceUtil/OutputUtil.cpp') 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 // ---------------------------------------------------------------------- -- cgit v1.2.3