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