зеркало из https://github.com/mozilla/pjs.git
small changes to clients of string converting APIs
This commit is contained in:
Родитель
6a792d2a29
Коммит
74dba32d8d
|
@ -357,7 +357,7 @@ nsresult CEndToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 aMode)
|
|||
|
||||
if(NS_OK==result){
|
||||
nsAutoString buffer;
|
||||
buffer.Assign(mTextValue, mTextValue.FindCharInSet(" \r\n\t\b",0));
|
||||
mTextValue.Left(buffer, mTextValue.FindCharInSet(" \r\n\t\b",0));
|
||||
mTypeID= nsHTMLTags::LookupTag(buffer);
|
||||
result=aScanner.GetChar(aChar); //eat the closing '>;
|
||||
}
|
||||
|
|
|
@ -534,7 +534,7 @@ nsresult nsXIFDTD::HandleTextToken(CToken* aToken) {
|
|||
{
|
||||
nsString& temp = aToken->GetStringValueXXX();
|
||||
|
||||
if (temp != "<xml version=\"1.0\"?>")
|
||||
if (!temp.Equals("<xml version=\"1.0\"?>"))
|
||||
{
|
||||
result= AddLeaf(node);
|
||||
}
|
||||
|
@ -1308,12 +1308,12 @@ nsresult nsXIFDTD::CollectContentComment(CToken* aToken, nsCParserNode& aNode) {
|
|||
|
||||
type=(eHTMLTokenTypes)token->GetTokenType();
|
||||
fragment=token->GetStringValueXXX();
|
||||
if(fragment=="content") {
|
||||
if(fragment.Equals("content")) {
|
||||
if(type==eToken_start)
|
||||
inContent=PR_TRUE;
|
||||
else inContent=PR_FALSE;
|
||||
}
|
||||
else if(fragment=="comment") {
|
||||
else if(fragment.Equals("comment")) {
|
||||
comment.Append("-->");
|
||||
result=(mSink)? mSink->AddComment(aNode):NS_OK;
|
||||
done=PR_TRUE;
|
||||
|
|
|
@ -357,7 +357,7 @@ nsresult CEndToken::Consume(PRUnichar aChar, nsScanner& aScanner,PRInt32 aMode)
|
|||
|
||||
if(NS_OK==result){
|
||||
nsAutoString buffer;
|
||||
buffer.Assign(mTextValue, mTextValue.FindCharInSet(" \r\n\t\b",0));
|
||||
mTextValue.Left(buffer, mTextValue.FindCharInSet(" \r\n\t\b",0));
|
||||
mTypeID= nsHTMLTags::LookupTag(buffer);
|
||||
result=aScanner.GetChar(aChar); //eat the closing '>;
|
||||
}
|
||||
|
|
|
@ -534,7 +534,7 @@ nsresult nsXIFDTD::HandleTextToken(CToken* aToken) {
|
|||
{
|
||||
nsString& temp = aToken->GetStringValueXXX();
|
||||
|
||||
if (temp != "<xml version=\"1.0\"?>")
|
||||
if (!temp.Equals("<xml version=\"1.0\"?>"))
|
||||
{
|
||||
result= AddLeaf(node);
|
||||
}
|
||||
|
@ -1308,12 +1308,12 @@ nsresult nsXIFDTD::CollectContentComment(CToken* aToken, nsCParserNode& aNode) {
|
|||
|
||||
type=(eHTMLTokenTypes)token->GetTokenType();
|
||||
fragment=token->GetStringValueXXX();
|
||||
if(fragment=="content") {
|
||||
if(fragment.Equals("content")) {
|
||||
if(type==eToken_start)
|
||||
inContent=PR_TRUE;
|
||||
else inContent=PR_FALSE;
|
||||
}
|
||||
else if(fragment=="comment") {
|
||||
else if(fragment.Equals("comment")) {
|
||||
comment.Append("-->");
|
||||
result=(mSink)? mSink->AddComment(aNode):NS_OK;
|
||||
done=PR_TRUE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче