PRUint32 nsString::Right(nsString& aDest,PRInt32 aCount) const{ PRInt32 offset=MaxInt(mLength-aCount,0); return Mid(aDest,offset,aCount); }
nsString::Right( self_type& aResult, size_type aLengthToCopy ) const { size_type myLength = Length(); aLengthToCopy = NS_MIN(myLength, aLengthToCopy); return Mid(aResult, myLength-aLengthToCopy, aLengthToCopy); }
PRUint32 nsString::Right(nsString& aDest,PRInt32 aCount) const{  PRInt32 offset=MaxInt(mLength-aCount,0);  return Mid(aDest,offset,aCount);}