fixed bug in nsString; added recycler to nsString2

git-svn-id: svn://10.0.0.236/trunk@24808 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-03-23 07:26:27 +00:00
parent 6f8559e7b3
commit a0d40e6afd
12 changed files with 256 additions and 0 deletions

View File

@@ -1097,6 +1097,7 @@ PRInt32 nsString::Left(nsString& aCopy,PRInt32 aCount) const {
* @return number of chars copied
*/
PRInt32 nsString::Mid(nsString& aCopy,PRInt32 anOffset,PRInt32 aCount) const {
aCopy.Truncate();
if(anOffset<mLength) {
aCount=(anOffset+aCount<=mLength) ? aCount : mLength-anOffset;