small mod to handle hex conversion better

git-svn-id: svn://10.0.0.236/trunk@21282 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-02-19 06:32:40 +00:00
parent e3a664c320
commit 93cd35c059
4 changed files with 12 additions and 8 deletions

View File

@@ -758,10 +758,11 @@ PRInt32 nsString::ToInteger(PRInt32* aErrorCode,PRInt32 aRadix) const {
result=-result;
break;
}
else if('+'==theChar) { //stop in a good state if you see this...
else if(('+'==theChar) || (' '==theChar)) { //stop in a good state if you see this...
break;
}
else if(' '==theChar){ //stop in a good state if you see this...
else if((('x'==theChar) || ('X'==theChar)) && (16==aRadix)) {
//stop in a good state.
break;
}
else{