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