sax/source/expatwrap/saxwriter.cxx | 48 ------------------------------------- 1 file changed, 48 deletions(-)
New commits: commit b6164f3f51ae891c9f38eb522f9b248498a5a10c Author: Miklos Vajna <vmik...@suse.cz> Date: Wed Feb 29 09:17:16 2012 +0100 sax: this CalcXMLLen() was commented out since 2001 diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index 49c6a83..e80b8bd 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 & -// nLen +=5; -// break; -// case '<': // < -// case '>': // > -// nLen +=4; -// break; -// case 39: // 39 == ''', ' -// case '"': // " -// case 13: // 
 -// nLen += 6; -// break; - -// case 10: // 
 -// case 9: // 	 -// if( bConvertAll ) -// { -// nLen += 6; // -// } -// break; -// default: -// nLen ++; -// } -// } - -// return nLen; -// } enum SaxInvalidCharacterError { _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits