if(ch!=aChar) aString+=aChar;
if(ch!=aChar) { if(!aScanner.IsIncremental() && result==kEOF) { aScanner.Mark(theOffset); aString=aChar; result=kBadStringLiteral; } else { aString+=aChar; } }
nsresult ConsumeQuotedString(PRUnichar aChar,nsString& aString,nsScanner& aScanner){  nsresult result=NS_OK;  switch(aChar) {    case kQuote:      result=aScanner.ReadUntil(aString,kQuote,PR_TRUE);      if(NS_OK==result)        result=aScanner.SkipOver(kQuote);  //this code is here in case someone mistakenly adds multiple quotes...      break;    case kApostrophe:      result=aScanner.ReadUntil(aString,kApostrophe,PR_TRUE);      if(NS_OK==result)        result=aScanner.SkipOver(kApostrophe); //this code is here in case someone mistakenly adds multiple apostrophes...      break;    default:      break;  }  PRUnichar ch=aString.Last();  if(ch!=aChar)    aString+=aChar;  return result;}