fixes bug 199221 "provide inline implementations of common string methods" r=dbaron sr=jag

git-svn-id: svn://10.0.0.236/trunk@140568 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2003-04-02 06:24:47 +00:00
parent 79351cf269
commit ccf746783b
8 changed files with 30 additions and 28 deletions

View File

@@ -197,19 +197,6 @@ nsString::SetCapacity( PRUint32 aNewCapacity )
*********************************************************************/
/**
* This method returns the internal unicode buffer.
* Now that we've factored the string class, this should never
* be able to return a 1 byte string.
*
* @update gess1/4/99
* @return ptr to internal (2-byte) buffer;
*/
const PRUnichar* nsString::get() const {
const PRUnichar* result=(eOneByte==GetCharSize()) ? 0 : mUStr;
return result;
}
/**
* set a char inside this string at given index
* @param aChar is the char you want to write into this string