Lines Matching refs:rReplaceStr
294 void TextSearch::ReplaceBackReferences( String& rReplaceStr, const String &rStr, const SearchResult… in ReplaceBackReferences() argument
303 while( STRING_NOTFOUND != ( nPos = rReplaceStr.SearchChar( sSrchChrs, nPos )) ) in ReplaceBackReferences()
305 if( rReplaceStr.GetChar( nPos ) == '&') in ReplaceBackReferences()
309 rReplaceStr.Erase( nPos, 1 ); // delete ampersand in ReplaceBackReferences()
311 rReplaceStr.Insert( rStr, nStart, nLength, nPos ); in ReplaceBackReferences()
315 else if( rReplaceStr.GetChar( nPos ) == '$') in ReplaceBackReferences()
317 if( nPos + 1 < rReplaceStr.Len()) in ReplaceBackReferences()
319 sFndChar = rReplaceStr.GetChar( nPos + 1 ); in ReplaceBackReferences()
333 rReplaceStr.Erase( nPos, 2 ); // delete both in ReplaceBackReferences()
349 rReplaceStr.Insert( sTmp, nPos ); in ReplaceBackReferences()
366 if( nPos + 1 < rReplaceStr.Len()) in ReplaceBackReferences()
368 sFndChar = rReplaceStr.GetChar( nPos + 1 ); in ReplaceBackReferences()
374 rReplaceStr.Erase( nPos, 1 ); in ReplaceBackReferences()
378 rReplaceStr.Erase( nPos, 2 ); // delete both in ReplaceBackReferences()
379 rReplaceStr.Insert( sTab, nPos ); // insert tabulator in ReplaceBackReferences()