removed calls to deprecated string methods

This commit is contained in:
rickg%netscape.com 2000-03-12 22:22:24 +00:00
Родитель cbb199a064
Коммит 609e3f0111
8 изменённых файлов: 18 добавлений и 16 удалений

Просмотреть файл

@ -1140,11 +1140,11 @@ nsresult CNavDTD::WillHandleStartTag(CToken* aToken,eHTMLTags aTag,nsCParserNode
if(1<theCount){
const nsString& theKey=aNode.GetKeyAt(0);
if(theKey.EqualsIgnoreCase("NAME")) {
if(theKey.Equals("NAME",IGNORE_CASE)) {
const nsString& theValue1=aNode.GetValueAt(0);
if(theValue1.EqualsIgnoreCase("\"CRC\"")) {
if(theValue1.Equals("\"CRC\"",IGNORE_CASE)) {
const nsString& theKey2=aNode.GetKeyAt(1);
if(theKey2.EqualsIgnoreCase("CONTENT")) {
if(theKey2.Equals("CONTENT",IGNORE_CASE)) {
const nsString& theValue2=aNode.GetValueAt(1);
PRInt32 err=0;
mExpectedCRC32=theValue2.ToInteger(&err);

Просмотреть файл

@ -1222,11 +1222,11 @@ nsresult COtherDTD::WillHandleStartTag(CToken* aToken,eHTMLTags aTag,nsCParserNo
if(1<theCount){
const nsString& theKey=aNode.GetKeyAt(0);
if(theKey.EqualsIgnoreCase("NAME")) {
if(theKey.Equals("NAME",IGNORE_CASE)) {
const nsString& theValue1=aNode.GetValueAt(0);
if(theValue1.EqualsIgnoreCase("\"CRC\"")) {
if(theValue1.Equals("\"CRC\"",IGNORE_CASE)) {
const nsString& theKey2=aNode.GetKeyAt(1);
if(theKey2.EqualsIgnoreCase("CONTENT")) {
if(theKey2.Equals("CONTENT",IGNORE_CASE)) {
const nsString& theValue2=aNode.GetValueAt(1);
PRInt32 err=0;
mExpectedCRC32=theValue2.ToInteger(&err);
@ -1235,6 +1235,7 @@ nsresult COtherDTD::WillHandleStartTag(CToken* aToken,eHTMLTags aTag,nsCParserNo
} //else
} //if
}//if
START_TIMER()

Просмотреть файл

@ -112,7 +112,7 @@ nsHTMLTags::LookupTag(const nsCString& aTag)
TagNode node(aTag);
TagNode* found = (TagNode*)gTagTree->FindItem(&node);
if (found) {
NS_ASSERTION(found->mStr.EqualsIgnoreCase(aTag), "bad tree");
NS_ASSERTION(found->mStr.Equals(aTag,IGNORE_CASE), "bad tree");
return found->mEnum;
}
else {

Просмотреть файл

@ -915,7 +915,7 @@ NS_IMETHODIMP CViewSourceHTML::HandleToken(CToken* aToken,nsIParser* aParser) {
{
nsAutoString theStr;
nsString& theEntity=aToken->GetStringValueXXX();
if(!theEntity.EqualsIgnoreCase("XI",2)) {
if(!theEntity.Equals("XI",IGNORE_CASE)) {
PRUnichar theChar=theEntity.CharAt(0);
if((nsCRT::IsAsciiDigit(theChar)) || ('X'==theChar) || ('x'==theChar)){
theStr.Append("#");

Просмотреть файл

@ -1140,11 +1140,11 @@ nsresult CNavDTD::WillHandleStartTag(CToken* aToken,eHTMLTags aTag,nsCParserNode
if(1<theCount){
const nsString& theKey=aNode.GetKeyAt(0);
if(theKey.EqualsIgnoreCase("NAME")) {
if(theKey.Equals("NAME",IGNORE_CASE)) {
const nsString& theValue1=aNode.GetValueAt(0);
if(theValue1.EqualsIgnoreCase("\"CRC\"")) {
if(theValue1.Equals("\"CRC\"",IGNORE_CASE)) {
const nsString& theKey2=aNode.GetKeyAt(1);
if(theKey2.EqualsIgnoreCase("CONTENT")) {
if(theKey2.Equals("CONTENT",IGNORE_CASE)) {
const nsString& theValue2=aNode.GetValueAt(1);
PRInt32 err=0;
mExpectedCRC32=theValue2.ToInteger(&err);

Просмотреть файл

@ -1222,11 +1222,11 @@ nsresult COtherDTD::WillHandleStartTag(CToken* aToken,eHTMLTags aTag,nsCParserNo
if(1<theCount){
const nsString& theKey=aNode.GetKeyAt(0);
if(theKey.EqualsIgnoreCase("NAME")) {
if(theKey.Equals("NAME",IGNORE_CASE)) {
const nsString& theValue1=aNode.GetValueAt(0);
if(theValue1.EqualsIgnoreCase("\"CRC\"")) {
if(theValue1.Equals("\"CRC\"",IGNORE_CASE)) {
const nsString& theKey2=aNode.GetKeyAt(1);
if(theKey2.EqualsIgnoreCase("CONTENT")) {
if(theKey2.Equals("CONTENT",IGNORE_CASE)) {
const nsString& theValue2=aNode.GetValueAt(1);
PRInt32 err=0;
mExpectedCRC32=theValue2.ToInteger(&err);
@ -1235,6 +1235,7 @@ nsresult COtherDTD::WillHandleStartTag(CToken* aToken,eHTMLTags aTag,nsCParserNo
} //else
} //if
}//if
START_TIMER()

Просмотреть файл

@ -112,7 +112,7 @@ nsHTMLTags::LookupTag(const nsCString& aTag)
TagNode node(aTag);
TagNode* found = (TagNode*)gTagTree->FindItem(&node);
if (found) {
NS_ASSERTION(found->mStr.EqualsIgnoreCase(aTag), "bad tree");
NS_ASSERTION(found->mStr.Equals(aTag,IGNORE_CASE), "bad tree");
return found->mEnum;
}
else {

Просмотреть файл

@ -915,7 +915,7 @@ NS_IMETHODIMP CViewSourceHTML::HandleToken(CToken* aToken,nsIParser* aParser) {
{
nsAutoString theStr;
nsString& theEntity=aToken->GetStringValueXXX();
if(!theEntity.EqualsIgnoreCase("XI",2)) {
if(!theEntity.Equals("XI",IGNORE_CASE)) {
PRUnichar theChar=theEntity.CharAt(0);
if((nsCRT::IsAsciiDigit(theChar)) || ('X'==theChar) || ('x'==theChar)){
theStr.Append("#");