basic_nsPromiseFlatString<CharT>::GetReadableFragment( nsReadableFragment<CharT>& aFragment, nsFragmentRequest aRequest, PRUint32 aOffset ) const { switch ( aRequest ) { case kFirstFragment: case kLastFragment: case kFragmentAt: aFragment.mEnd = (aFragment.mStart = mBuffer) + mLength; return aFragment.mStart + aOffset;  case kPrevFragment: case kNextFragment: default: return 0;
basic_nsLiteralString<CharT>::GetReadableFragment( nsReadableFragment<CharT>& aFragment, nsFragmentRequest aRequest, PRUint32 aOffset ) const { switch ( aRequest ) { case kFirstFragment: case kLastFragment: case kFragmentAt: aFragment.mStart = mStart; aFragment.mEnd = mEnd; return mStart + aOffset;  case kPrevFragment: case kNextFragment: default: return 0; }
basic_nsPromiseFlatString<CharT>::GetReadableFragment( nsReadableFragment<CharT>& aFragment, 						 nsFragmentRequest aRequest, 						 PRUint32 aOffset ) const {  switch ( aRequest ) {    case kFirstFragment:    case kLastFragment:    case kFragmentAt:      aFragment.mEnd = (aFragment.mStart = mBuffer) + mLength;      return aFragment.mStart + aOffset;        case kPrevFragment:    case kNextFragment:    default:      return 0;  }}