diff options
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/expatwrap/saxwriter.cxx | 48 |
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 & -// 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 { |