Lines Matching refs:rString
141 void Export::QuotHTMLXRM( ByteString &rString ) in QuotHTMLXRM() argument
146 for ( sal_uInt16 i = 0; i < rString.Len(); i++ ) { in QuotHTMLXRM()
147 ByteString sTemp = rString.Copy( i ); in QuotHTMLXRM()
149 while ( i < rString.Len() && rString.GetChar( i ) != '>' ) { in QuotHTMLXRM()
150 sReturn += rString.GetChar( i ); in QuotHTMLXRM()
153 if ( rString.GetChar( i ) == '>' ) { in QuotHTMLXRM()
159 if ( i < rString.Len()) { in QuotHTMLXRM()
160 switch ( rString.GetChar( i )) { in QuotHTMLXRM()
162 if( i+2 < rString.Len() && in QuotHTMLXRM()
163 (rString.GetChar( i+1 ) == 'b' || rString.GetChar( i+1 ) == 'B') && in QuotHTMLXRM()
164 rString.GetChar( i+2 ) == '>' ) in QuotHTMLXRM()
169 else if( i+3 < rString.Len() && in QuotHTMLXRM()
170 rString.GetChar( i+1 ) == '/' && in QuotHTMLXRM()
171 (rString.GetChar( i+2 ) == 'b' || rString.GetChar( i+2 ) == 'B') && in QuotHTMLXRM()
172 rString.GetChar( i+3 ) == '>' ) in QuotHTMLXRM()
194 if ((( i + 4 ) < rString.Len()) && in QuotHTMLXRM()
195 ( rString.Copy( i, 5 ) == "&" )) in QuotHTMLXRM()
196 sReturn += rString.GetChar( i ); in QuotHTMLXRM()
202 sReturn += rString.GetChar( i ); in QuotHTMLXRM()
207 rString = sReturn; in QuotHTMLXRM()
210 void Export::QuotHTML( ByteString &rString ) in QuotHTML() argument
214 for ( sal_uInt16 i = 0; i < rString.Len(); i++ ) { in QuotHTML()
215 ByteString sTemp = rString.Copy( i ); in QuotHTML()
217 while ( i < rString.Len() && rString.GetChar( i ) != '>' ) { in QuotHTML()
218 sReturn += rString.GetChar( i ); in QuotHTML()
221 if ( rString.GetChar( i ) == '>' ) { in QuotHTML()
226 if ( i < rString.Len()) { in QuotHTML()
227 switch ( rString.GetChar( i )) { in QuotHTML()
245 if ((( i + 4 ) < rString.Len()) && in QuotHTML()
246 ( rString.Copy( i, 5 ) == "&" )) in QuotHTML()
247 sReturn += rString.GetChar( i ); in QuotHTML()
253 sReturn += rString.GetChar( i ); in QuotHTML()
258 rString = sReturn; in QuotHTML()
261 void Export::RemoveUTF8ByteOrderMarker( ByteString &rString ){ in RemoveUTF8ByteOrderMarker() argument
262 if( hasUTF8ByteOrderMarker( rString ) ) in RemoveUTF8ByteOrderMarker()
263 rString.Erase( 0 , 3 ); in RemoveUTF8ByteOrderMarker()
266 bool Export::hasUTF8ByteOrderMarker( const ByteString &rString ){ in hasUTF8ByteOrderMarker() argument
270 return rString.Len() >= 3 && in hasUTF8ByteOrderMarker()
271 rString.GetChar( 0 ) == bom[ 0 ] && in hasUTF8ByteOrderMarker()
272 rString.GetChar( 1 ) == bom[ 1 ] && in hasUTF8ByteOrderMarker()
273 rString.GetChar( 2 ) == bom[ 2 ] ; in hasUTF8ByteOrderMarker()
275 bool Export::fileHasUTF8ByteOrderMarker( const ByteString &rString ){ in fileHasUTF8ByteOrderMarker() argument
276 SvFileStream aFileIn( String( rString , RTL_TEXTENCODING_ASCII_US ) , STREAM_READ ); in fileHasUTF8ByteOrderMarker()
389 void Export::UnquotHTML( ByteString &rString ) in UnquotHTML() argument
393 while ( rString.Len()) { in UnquotHTML()
394 if ( rString.Copy( 0, 5 ) == "&" ) { in UnquotHTML()
396 rString.Erase( 0, 5 ); in UnquotHTML()
398 else if ( rString.Copy( 0, 4 ) == "<" ) { in UnquotHTML()
400 rString.Erase( 0, 4 ); in UnquotHTML()
402 else if ( rString.Copy( 0, 4 ) == ">" ) { in UnquotHTML()
404 rString.Erase( 0, 4 ); in UnquotHTML()
406 else if ( rString.Copy( 0, 6 ) == """ ) { in UnquotHTML()
408 rString.Erase( 0, 6 ); in UnquotHTML()
410 else if ( rString.Copy( 0, 6 ) == "'" ) { in UnquotHTML()
412 rString.Erase( 0, 6 ); in UnquotHTML()
415 sReturn += rString.GetChar( 0 ); in UnquotHTML()
416 rString.Erase( 0, 1 ); in UnquotHTML()
419 rString = sReturn; in UnquotHTML()
478 void Export::replaceEncoding( ByteString& rString ) in replaceEncoding() argument
482 for( xub_StrLen idx = 0; idx <= rString.Len()-8 ; idx++ ) in replaceEncoding()
484 if( rString.GetChar( idx ) == '&' && in replaceEncoding()
485 rString.GetChar( idx+1 ) == '#' && in replaceEncoding()
486 rString.GetChar( idx+2 ) == 'x' && in replaceEncoding()
487 rString.GetChar( idx+7 ) == ';' ) in replaceEncoding()
489 ByteString sTmp = rString.Copy( 0 , idx ); in replaceEncoding()
491 sTmp.Append( rString.GetChar( idx+3 ) ); in replaceEncoding()
492 sTmp.Append( rString.GetChar( idx+4 ) ); in replaceEncoding()
493 sTmp.Append( rString.GetChar( idx+5 ) ); in replaceEncoding()
494 sTmp.Append( rString.GetChar( idx+6 ) ); in replaceEncoding()
495 sTmp.Append( rString.Copy( idx+8 , rString.Len() ) ); in replaceEncoding()
496 rString = sTmp; in replaceEncoding()