PRUint32 nsString::Left(nsString& aDest,PRInt32 aCount) const{  if(aCount<0) aCount=mLength; else aCount=MinInt(aCount,mLength); nsStr::StrAssign(aDest,*this,0,aCount);  return aDest.mLength; }
nsString::Left( nsAString& aResult, size_type aLengthToCopy ) const { return Mid(aResult, 0, aLengthToCopy); }
PRUint32 nsString::Left(nsString& aDest,PRInt32 aCount) const{  if(aCount<0)    aCount=mLength;  else aCount=MinInt(aCount,mLength);  nsStr::StrAssign(aDest,*this,0,aCount);  return aDest.mLength;}