sync with new nsString2 API

git-svn-id: svn://10.0.0.236/trunk@28426 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-04-21 04:02:14 +00:00
parent 5af7050559
commit c1a9c636d1
16 changed files with 25 additions and 24 deletions

View File

@@ -515,7 +515,7 @@ nsresult CViewSourceHTML::WriteText(const nsString& aTextString,nsIContentSink&
PRInt32 theOffset=0;
while(theOffset<theEnd){
switch(aTextString[theOffset]){
switch(aTextString.CharAt(theOffset)){
case kCR: break;
case kLF:
{
@@ -526,7 +526,7 @@ nsresult CViewSourceHTML::WriteText(const nsString& aTextString,nsIContentSink&
temp="";
break;
case kSpace:
if((PR_TRUE==aPreserveSpace) && (kSpace==aTextString[theOffset+1])) {
if((PR_TRUE==aPreserveSpace) && (kSpace==aTextString.CharAt(theOffset+1))) {
if(temp.Length())
result=aSink.AddLeaf(theTextNode); //just dump the whole string...
WriteNBSP(1,aSink);
@@ -536,7 +536,7 @@ nsresult CViewSourceHTML::WriteText(const nsString& aTextString,nsIContentSink&
//fall through...
default:
//scan ahead looking for valid chars...
temp+=aTextString[theOffset];
temp+=aTextString.CharAt(theOffset);
break;
}//switch...
theOffset++;