Lines Matching refs:rString
101 void HTMLParser::RemoveSGMLComment( String &rString, sal_Bool bFull ) in RemoveSGMLComment() argument
104 while( rString.Len() && in RemoveSGMLComment()
105 ( ' '==(c=rString.GetChar(0)) || '\t'==c || '\r'==c || '\n'==c ) ) in RemoveSGMLComment()
106 rString.Erase( 0, 1 ); in RemoveSGMLComment()
108 while( rString.Len() && in RemoveSGMLComment()
109 ( ' '==(c=rString.GetChar( rString.Len()-1)) in RemoveSGMLComment()
111 rString.Erase( rString.Len()-1 ); in RemoveSGMLComment()
115 if( rString.Len() >= 4 && in RemoveSGMLComment()
116 rString.CompareToAscii( "<!--", 4 ) == COMPARE_EQUAL ) in RemoveSGMLComment()
123 while( nPos < rString.Len() && in RemoveSGMLComment()
124 ( ( c = rString.GetChar( nPos )) != '\r' && c != '\n' ) ) in RemoveSGMLComment()
126 if( c == '\r' && nPos+1 < rString.Len() && in RemoveSGMLComment()
127 '\n' == rString.GetChar( nPos+1 )) in RemoveSGMLComment()
132 rString.Erase( 0, ++nPos ); in RemoveSGMLComment()
135 if( rString.Len() >=3 && in RemoveSGMLComment()
136 rString.Copy(rString.Len()-3).CompareToAscii("-->") in RemoveSGMLComment()
139 rString.Erase( rString.Len()-3 ); in RemoveSGMLComment()
143 rString.EraseTrailingChars(); in RemoveSGMLComment()
144 xub_StrLen nDel = 0, nLen = rString.Len(); in RemoveSGMLComment()
146 rString.Copy(nLen-2).CompareToAscii("//") == COMPARE_EQUAL ) in RemoveSGMLComment()
150 else if( nLen && '\'' == rString.GetChar(nLen-1) ) in RemoveSGMLComment()
156 c = rString.GetChar( nLen-(nDel+1) ); in RemoveSGMLComment()
161 '\r'==rString.GetChar( nLen-(nDel+1) ) ) in RemoveSGMLComment()
165 rString.Erase( nLen-nDel ); in RemoveSGMLComment()