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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user