diff options
author | Michi Henning <michi@zeroc.com> | 2006-11-22 08:35:01 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2006-11-22 08:35:01 +0000 |
commit | 9073302574725750291e339e0bb4a60b1475c114 (patch) | |
tree | e2cf193e77df8aa481b5f2683802e56b25113787 /cpp/src/IceUtil/OutputUtil.cpp | |
parent | change .dll extension to .pyd to support Python 2.5 on Windows (diff) | |
download | ice-9073302574725750291e339e0bb4a60b1475c114.tar.bz2 ice-9073302574725750291e339e0bb4a60b1475c114.tar.xz ice-9073302574725750291e339e0bb4a60b1475c114.zip |
Intermediate check-in for slice2html.
Diffstat (limited to 'cpp/src/IceUtil/OutputUtil.cpp')
-rw-r--r-- | cpp/src/IceUtil/OutputUtil.cpp | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/cpp/src/IceUtil/OutputUtil.cpp b/cpp/src/IceUtil/OutputUtil.cpp index b12cdc5871d..2d674303f5d 100644 --- a/cpp/src/IceUtil/OutputUtil.cpp +++ b/cpp/src/IceUtil/OutputUtil.cpp @@ -132,6 +132,12 @@ IceUtil::OutputBase::restoreIndent() _indentSave.pop(); } +int +IceUtil::OutputBase::currIndent() +{ + return _indent; +} + void IceUtil::OutputBase::setIndent(int indentSize) { @@ -145,7 +151,7 @@ IceUtil::OutputBase::setUseTab(bool useTab) } void -IceUtil::OutputBase::nl() +IceUtil::OutputBase::newline() { _out << '\n'; _pos = 0; @@ -183,7 +189,7 @@ IceUtil::OutputBase::nl() } void -IceUtil::OutputBase::sp() +IceUtil::OutputBase::separator() { if(_separator) { @@ -255,7 +261,7 @@ IceUtil::Output::sb() { if(_blockStart.length()) { - nl(); + newline(); _out << _blockStart; } ++_pos; @@ -269,7 +275,7 @@ IceUtil::Output::eb() dec(); if(_blockEnd.length()) { - nl(); + newline(); _out << _blockEnd; } --_pos; @@ -357,20 +363,20 @@ IceUtil::XMLOutput::print(const char* s) } void -IceUtil::XMLOutput::nl() +IceUtil::XMLOutput::newline() { if(_se) { _se = false; _out << '>'; } - OutputBase::nl(); + OutputBase::newline(); } void -IceUtil::XMLOutput::se(const string& element) +IceUtil::XMLOutput::startElement(const string& element) { - nl(); + newline(); // // If we're not in SGML mode the output of the '>' character is @@ -404,7 +410,7 @@ IceUtil::XMLOutput::se(const string& element) } void -IceUtil::XMLOutput::ee() +IceUtil::XMLOutput::endElement() { string element = _elementStack.top(); _elementStack.pop(); @@ -428,7 +434,7 @@ IceUtil::XMLOutput::ee() { if(!_text) { - nl(); + newline(); } _out << "</" << element << '>'; } |