summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-02-29 09:17:16 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-02-29 09:17:16 +0100
commitb6164f3f51ae891c9f38eb522f9b248498a5a10c (patch)
treebb1795ba173d61d49cca1c3c89bdccae061185f5 /sax
parent2343be9f1bda458835ed8e3c6bf11905ccbe9b13 (diff)
sax: this CalcXMLLen() was commented out since 2001
Diffstat (limited to 'sax')
-rw-r--r--sax/source/expatwrap/saxwriter.cxx48
1 files changed, 0 insertions, 48 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index 49c6a837a235..e80b8bda7a92 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -71,54 +71,6 @@ using namespace ::com::sun::star::io;
*****/
namespace sax_expatwrap {
-/*****
-*
-* Calculates the length of the sequence after conversion, but the conversion is not done.
-* .g. &<>"' plus some more are
-* special characters in XML that need to be transformed
-*
-* @param bConvertAll For Attributes it is necessary to convert every symbol (including line feed and tab)
-* Set this to true, if you want to perform this special conversion
-* @return The returned value is equal to the length of the incoming sequence, when no
-+ conversion is necessary, otherwise it is larger than the length of the sequence.
-****/
-// inline sal_Int32 CalcXMLLen( const Sequence<sal_Int8> & seq , sal_Bool bConvertAll ) throw()
-// {
-// sal_Int32 nLen = 0;
-// const sal_Int8 *pArray = seq.getConstArray();
-
-// for( int i = 0 ; i < seq.getLength() ; i ++ ) {
-
-// sal_Int8 c = pArray[i];
-// switch( c )
-// {
-// case '&': // resemble to &amp;
-// nLen +=5;
-// break;
-// case '<': // &lt;
-// case '>': // &gt;
-// nLen +=4;
-// break;
-// case 39: // 39 == ''', &apos;
-// case '"': // &quot;
-// case 13: // &#x0d;
-// nLen += 6;
-// break;
-
-// case 10: // &#x0a;
-// case 9: // &#x09;
-// if( bConvertAll )
-// {
-// nLen += 6; //
-// }
-// break;
-// default:
-// nLen ++;
-// }
-// }
-
-// return nLen;
-// }
enum SaxInvalidCharacterError
{