WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
17390
eliminate DeprecatedString
https://bugs.webkit.org/show_bug.cgi?id=17390
Summary
eliminate DeprecatedString
Darin Adler
Reported
2008-02-16 09:30:05 PST
Sam and I are getting close!
Attachments
work in progress
(209.88 KB, patch)
2008-02-16 09:31 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Move all uses of toInt (and friends) to String
(24.20 KB, patch)
2008-02-16 14:15 PST
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
work in progress
(181.49 KB, patch)
2008-02-18 10:17 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
work in progress
(93.05 KB, patch)
2008-02-18 19:09 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
work in progress
(94.29 KB, patch)
2008-02-18 21:22 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
work in progress
(43.85 KB, patch)
2008-02-20 18:09 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2008-02-16 09:31:40 PST
Created
attachment 19155
[details]
work in progress
Sam Weinig
Comment 2
2008-02-16 14:15:26 PST
Created
attachment 19159
[details]
Move all uses of toInt (and friends) to String This patch takes a chunk of the uses of DeprecatedString out. I am not thrilled with the names, so any suggestions would be great. I think in the future we can make the String API a little nicer by allowing both the forms of toInt (strict and non-strict, could use better names for that too) to take a base parameter, but since that wasn't necessary for this I left it out.
Darin Adler
Comment 3
2008-02-16 19:21:23 PST
Comment on
attachment 19159
[details]
Move all uses of toInt (and friends) to String I think that having functions to do arbitrary base is overkill, since we rarely need anything except base 10. 803 CString latin1String = Latin1Encoding().encode(data, length); 804 double val = kjs_strtod(latin1String.data(), &end); I don't think the above is efficient enough. There's no reason this has to allocate memory. We should convert to narrow characters in a fixed-size stack buffer. r=me
Sam Weinig
Comment 4
2008-02-16 20:03:16 PST
Darin, Your change looks really good, but I think it would be cleaner to review and commit it in logical chucks. There seem to be a couple of different removals that makes sense by themselves, the CSS changes (it might also be able to be split up, though I don't think that is necessary), the changes to TextStream, the removal of the dump() methods (we may want to take an informal poll to make sure those really aren't used by anyone, some times Hyatt surprises me with what tools in the code he uses), RegularExpression changes, DeprecatedStringList removal, etc. Yeah!
Darin Adler
Comment 5
2008-02-18 10:15:52 PST
Comment on
attachment 19159
[details]
Move all uses of toInt (and friends) to String Clearing flag since Sam landed this.
Darin Adler
Comment 6
2008-02-18 10:17:06 PST
Created
attachment 19189
[details]
work in progress I don't intend to land all these changes at once. Some of these are not even required to remove DeprecatedString. But it's a good set of changes in pretty good shape right now.
Darin Adler
Comment 7
2008-02-18 19:09:53 PST
Created
attachment 19203
[details]
work in progress
Darin Adler
Comment 8
2008-02-18 21:22:03 PST
Created
attachment 19204
[details]
work in progress
Darin Adler
Comment 9
2008-02-20 18:09:09 PST
Created
attachment 19246
[details]
work in progress
Darin Adler
Comment 10
2008-02-23 00:41:13 PST
Sam fixed this in
r30501
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug