exposed objectAt in deque, and fixed toInteger bug

git-svn-id: svn://10.0.0.236/trunk@17859 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-01-15 19:20:51 +00:00
parent c2d4d4ab29
commit aaaf38083e
8 changed files with 46 additions and 28 deletions

View File

@@ -664,7 +664,10 @@ PRInt32 nsString::ToInteger(PRInt32* aErrorCode,PRInt32 aRadix) const {
result=-result;
break;
}
else if('+'==theChar) {
else if('+'==theChar) { //stop in a good state if you see this...
break;
}
else if(' '==theChar){ //stop in a good state if you see this...
break;
}
else{
@@ -2066,9 +2069,11 @@ void nsString::SelfTest(void) {
nsAutoString a("foobar");
nsAutoString b("foo");
nsAutoString c(".5111");
nsAutoString d(" 5");
PRInt32 result=a.Compare(b);
PRInt32 result2=result;
result=c.ToInteger(&result2);
result=d.ToInteger(&result2);
result2=result;
#if 0