Lots of changes to get this stuff building on Solaris, et al. None of these changes effect the mainline build yet, and won't until |NEW_STRING_APIS| is defined for everyone (coming soon)
git-svn-id: svn://10.0.0.236/trunk@64064 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -137,7 +137,7 @@ nsString::~nsString() {
|
||||
}
|
||||
|
||||
#ifdef NEW_STRING_APIS
|
||||
const PRUnichar* nsString::GetReadableFragment( ReadableFragment& aFragment, FragmentRequest aRequest, PRUint32 aOffset ) const {
|
||||
const PRUnichar* nsString::GetReadableFragment( nsReadableFragment<PRUnichar>& aFragment, nsFragmentRequest aRequest, PRUint32 aOffset ) const {
|
||||
switch ( aRequest ) {
|
||||
case kFirstFragment:
|
||||
case kLastFragment:
|
||||
@@ -152,7 +152,7 @@ const PRUnichar* nsString::GetReadableFragment( ReadableFragment& aFragment, Fra
|
||||
}
|
||||
}
|
||||
|
||||
PRUnichar* nsString::GetWritableFragment( WritableFragment& aFragment, FragmentRequest aRequest, PRUint32 aOffset ) {
|
||||
PRUnichar* nsString::GetWritableFragment( nsWritableFragment<PRUnichar>& aFragment, nsFragmentRequest aRequest, PRUint32 aOffset ) {
|
||||
switch ( aRequest ) {
|
||||
case kFirstFragment:
|
||||
case kLastFragment:
|
||||
@@ -218,7 +218,6 @@ void nsString::SetCapacity(PRUint32 aLength) {
|
||||
|
||||
|
||||
//static char gChar=0;
|
||||
#ifndef NEW_STRING_APIS
|
||||
/**
|
||||
*
|
||||
* @update gess1/4/99
|
||||
@@ -243,6 +242,7 @@ const PRUnichar* nsString::GetUnicode(void) const {
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifndef NEW_STRING_APIS
|
||||
/**
|
||||
* Get nth character.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user