Lines Matching refs:pcEnd

48 inline const sal_Char* lclFindCharacter( const sal_Char* pcBeg, const sal_Char* pcEnd, sal_Char cCh…  in lclFindCharacter()  argument
50 …sal_Int32 nIndex = rtl_str_indexOfChar_WithLength( pcBeg, static_cast< sal_Int32 >( pcEnd - pcBeg … in lclFindCharacter()
51 return (nIndex < 0) ? pcEnd : (pcBeg + nIndex); in lclFindCharacter()
59 const sal_Char* lclFindWhiteSpace( const sal_Char* pcBeg, const sal_Char* pcEnd ) in lclFindWhiteSpace() argument
61 for( ; pcBeg < pcEnd; ++pcBeg ) in lclFindWhiteSpace()
64 return pcEnd; in lclFindWhiteSpace()
67 const sal_Char* lclFindNonWhiteSpace( const sal_Char* pcBeg, const sal_Char* pcEnd ) in lclFindNonWhiteSpace() argument
69 for( ; pcBeg < pcEnd; ++pcBeg ) in lclFindNonWhiteSpace()
72 return pcEnd; in lclFindNonWhiteSpace()
75 const sal_Char* lclTrimWhiteSpaceFromEnd( const sal_Char* pcBeg, const sal_Char* pcEnd ) in lclTrimWhiteSpaceFromEnd() argument
77 while( (pcBeg < pcEnd) && lclIsWhiteSpace( pcEnd[ -1 ] ) ) in lclTrimWhiteSpaceFromEnd()
78 --pcEnd; in lclTrimWhiteSpaceFromEnd()
79 return pcEnd; in lclTrimWhiteSpaceFromEnd()
82 inline void lclAppendToBuffer( OStringBuffer& rBuffer, const sal_Char* pcBeg, const sal_Char* pcEnd in lclAppendToBuffer() argument
84 rBuffer.append( pcBeg, static_cast< sal_Int32 >( pcEnd - pcBeg ) ); in lclAppendToBuffer()
89 void lclProcessAttribs( OStringBuffer& rBuffer, const sal_Char* pcBeg, const sal_Char* pcEnd ) in lclProcessAttribs() argument
104 while( bOk && (pcNameBeg < pcEnd) ) in lclProcessAttribs()
107 const sal_Char* pcEqualSign = lclFindCharacter( pcNameBeg, pcEnd, '=' ); in lclProcessAttribs()
108 if( (bOk = pcEqualSign < pcEnd) == true ) in lclProcessAttribs()
115 const sal_Char* pcValueBeg = lclFindNonWhiteSpace( pcEqualSign + 1, pcEnd ); in lclProcessAttribs()
116 … if( (bOk = (pcValueBeg < pcEnd) && ((*pcValueBeg == '\'') || (*pcValueBeg == '"'))) == true ) in lclProcessAttribs()
119 … const sal_Char* pcValueEnd = lclFindCharacter( pcValueBeg + 1, pcEnd, *pcValueBeg ); in lclProcessAttribs()
120 if( (bOk = pcValueEnd < pcEnd) == true ) in lclProcessAttribs()
135 if( (pcNameBeg < pcEnd) && ((bOk = lclIsWhiteSpace( *pcNameBeg )) == true) ) in lclProcessAttribs()
136 pcNameBeg = lclFindNonWhiteSpace( pcNameBeg + 1, pcEnd ); in lclProcessAttribs()
149 lclAppendToBuffer( rBuffer, pcBeg, pcEnd ); in lclProcessAttribs()
245 const sal_Char* pcEnd = pcBeg + rChars.getLength(); in lclProcessCharacters() local
246 bool bHasBracket = (pcBeg < pcEnd) && (pcEnd[ -1 ] == '<'); in lclProcessCharacters()
247 if( bHasBracket ) --pcEnd; in lclProcessCharacters()
250 const sal_Char* pcContentsBeg = lclFindNonWhiteSpace( pcBeg, pcEnd ); in lclProcessCharacters()
251 while( pcContentsBeg < pcEnd ) in lclProcessCharacters()
253 const sal_Char* pcWhitespaceBeg = lclFindWhiteSpace( pcContentsBeg + 1, pcEnd ); in lclProcessCharacters()
255 if( pcWhitespaceBeg < pcEnd ) in lclProcessCharacters()
257 pcContentsBeg = lclFindNonWhiteSpace( pcWhitespaceBeg, pcEnd ); in lclProcessCharacters()