fixed PDT+19121; r=kmcclusk

git-svn-id: svn://10.0.0.236/trunk@55130 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-12-03 00:30:29 +00:00
parent 1cd55fd548
commit 6d81d0e4d1
21 changed files with 231 additions and 128 deletions

View File

@@ -396,13 +396,18 @@ void nsString::ToUpperCase(nsString& aString) const {
* This method is used to remove all occurances of the
* characters found in aSet from this string.
*
* @update gess 01/04/99
* @update gess 11/02/99
* @param aChar -- char to be stripped
* @param anOffset -- where in this string to start stripping chars
* @return *this
*/
nsString& nsString::StripChar(char aChar){
char aSet[2]={aChar,0};
nsStr::StripChars(*this,aSet);
nsString& nsString::StripChar(PRUnichar aChar,PRInt32 anOffset){
anOffset=nsStr::FindChar(*this,aChar,PR_FALSE,anOffset);
while(kNotFound<anOffset) {
nsStr::Delete(*this,anOffset,1);
anOffset=nsStr::FindChar(*this,aChar,PR_FALSE,anOffset);
}
return *this;
}