void AppendToBuffer(const nsAString& aStr) { AppendToBuffer(nsScannerString::AllocBufferFromString(aStr), nsnull);
void nsScanner::AppendToBuffer(nsScannerString::Buffer* aBuf) { if (!mSlidingBuffer) { mSlidingBuffer = new nsScannerString(aBuf); mSlidingBuffer->BeginReading(mCurrentPosition); mMarkPosition = mCurrentPosition; mSlidingBuffer->EndReading(mEndPosition); mCountRemaining = aBuf->DataLength(); } else { mSlidingBuffer->AppendBuffer(aBuf); if (mCurrentPosition == mEndPosition) { mSlidingBuffer->BeginReading(mCurrentPosition); } mSlidingBuffer->EndReading(mEndPosition); mCountRemaining += aBuf->DataLength(); }  if (mFirstNonWhitespacePosition == -1) { nsScannerIterator iter(mCurrentPosition); nsScannerIterator end(mEndPosition);  while (iter != end) { if (!nsCRT::IsAsciiSpace(*iter)) { mFirstNonWhitespacePosition = Distance(mCurrentPosition, iter);  break;
      void AppendToBuffer(const nsAString& aStr)      {        AppendToBuffer(nsScannerString::AllocBufferFromString(aStr), nsnull);      }