prep work to land nsString2

git-svn-id: svn://10.0.0.236/trunk@24662 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-03-22 08:29:26 +00:00
parent 6b4a9e3ee5
commit a1384a7aec
10 changed files with 56 additions and 4 deletions

View File

@@ -419,6 +419,16 @@ PRUnichar& nsString::Last() const{
else return gBadChar;
}
PRBool nsString::SetCharAt(PRUnichar aChar,PRInt32 anIndex){
PRBool result=PR_FALSE;
if(anIndex<mLength){
PRUnichar* theStr=(PRUnichar*)mStr;
theStr[anIndex]=aChar;
result=PR_TRUE;
}
return result;
}
/**
* Create a new string by appending given string to this
* @update gess 7/27/98