try to improve append performance and allow non-null term buffers when count is given

git-svn-id: svn://10.0.0.236/trunk@40248 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-07-20 06:58:41 +00:00
parent bb00524732
commit 8efbb96fe9
16 changed files with 216 additions and 137 deletions

View File

@@ -446,7 +446,8 @@ nsString& Append(const nsString& aString) {return Append(aString,aString.mLength
* Appends n characters from given string to this,
*
* @param aString is the source to be appended to this
* @param aCount -- number of chars to copy
* @param aCount -- number of chars to copy; -1 tells us to compute the strlen for you
* WARNING: If you provide a count>0, we don't double check the actual string length!
* @return number of chars copied
*/
nsString& Append(const nsStr& aString,PRInt32 aCount);