sync with new nsString2 API

This commit is contained in:
rickg@netscape.com
1999-04-21 04:02:14 +00:00
parent 1a01e3ea99
commit 93b02e8dd9
15 changed files with 23 additions and 23 deletions

View File

@@ -1391,13 +1391,13 @@ PRInt32 CEntityToken::TranslateToUnicodeStr(nsString& aString) {
PRInt32 theRadix[2]={16,10};
if(mTextValue.Length()>1) {
PRUnichar theChar0=mTextValue[0];
PRUnichar theChar0=mTextValue.CharAt(0);
PRBool isDigit0=nsString::IsDigit(theChar0);
if(kHashsign==theChar0) {
PRInt32 err=0;
PRUnichar theChar1=mTextValue[1];
PRUnichar theChar1=mTextValue.CharAt(1);
PRBool isDigit1=nsString::IsDigit(theChar1);
value=mTextValue.ToInteger(&err,theRadix[isDigit1]);
if(0==err) {