small mod to handle hex conversion better

This commit is contained in:
rickg%netscape.com 1999-02-19 06:32:40 +00:00
Родитель 4ca272f218
Коммит 1fe259de63
4 изменённых файлов: 12 добавлений и 8 удалений

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

@ -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{

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

@ -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{

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

@ -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{

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

@ -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{