const nsLocalString theTerminals(aTerminalChars,
const nsDependentString theTerminals(aTerminalChars,
nsresult ConsumeAttributeValueText(nsString& aString,                                   nsScanner& aScanner,                                   const PRUnichar *aTerminalChars,                                   PRInt32 aFlag){  const nsLocalString theTerminals(aTerminalChars,    sizeof(aTerminalChars)/sizeof(aTerminalChars[0]) - 1);  nsresult result=aScanner.ReadUntil(aString,theTerminals,PR_FALSE);   if(NS_SUCCEEDED(result)) {    PRUnichar ch;    aScanner.Peek(ch);    if(ch==kAmpersand) {      result=ConsumeAttributeEntity(aString,aScanner,aFlag);      if (NS_SUCCEEDED(result)) {        result=ConsumeAttributeValueText(aString,aScanner,aTerminalChars,aFlag);      }    }  }  return result;}