remove the unused replace_all variant
This commit is contained in:
parent
fb21365cef
commit
7feb9bcec2
2 changed files with 0 additions and 25 deletions
|
@ -235,9 +235,6 @@ class StreamStr : public bostream
|
|||
void replace_all(
|
||||
char i_cCarToSearch,
|
||||
char i_cReplacement );
|
||||
void replace_all(
|
||||
Area i_aStrToSearch,
|
||||
Area i_aReplacement );
|
||||
|
||||
StreamStr & to_upper(
|
||||
position_type i_nStart = 0,
|
||||
|
|
|
@ -668,28 +668,6 @@ StreamStr::replace_all( char i_cCarToSearch,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
StreamStr::replace_all( Area i_aStrToSearch,
|
||||
Area i_aReplacement )
|
||||
{
|
||||
position_type p = 0;
|
||||
const char * pSearch = i_aStrToSearch.sStr;
|
||||
size_type nSearch = i_aStrToSearch.nLength;
|
||||
|
||||
while ( p <= length() - nSearch )
|
||||
{
|
||||
if ( strncmp(dpData+p, pSearch, nSearch) == 0 )
|
||||
{
|
||||
replace( p, nSearch, i_aReplacement );
|
||||
p += i_aReplacement.nLength;
|
||||
}
|
||||
else
|
||||
{
|
||||
++p;
|
||||
}
|
||||
} // end while
|
||||
}
|
||||
|
||||
StreamStr &
|
||||
StreamStr::to_upper( position_type i_nStart,
|
||||
size_type i_nLength )
|
||||
|
|
Loading…
Reference in a new issue