Provide functions that convert an integer to a decimal nsAutoTString
Categories
(Core :: XPCOM, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox83 | --- | fixed |
People
(Reporter: sg, Assigned: sg)
Details
Attachments
(2 files)
There are several places in the code where a string representation of an integer is needed, either as a standalone or for concatenating. Such code could be simplified if we had functions converting to a string rather than needing to construct an empty string, and then append to it.
Comment 1•5 years ago
|
||
nsPrintfCString("%d", integer)
?
Assignee | ||
Comment 2•5 years ago
|
||
Well, yes. but isn't a nsPrintfCString
much less efficient?
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D91716
Comment 6•5 years ago
|
||
Backed outfor causing bustage on nsString.h.
Backout link: https://hg.mozilla.org/integration/autoland/rev/b5baa3a5c6cdb65fcf05daa269e6a5476ff4fff0
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=317774678&repo=autoland&lineNumber=39213
Assignee | ||
Comment 7•5 years ago
|
||
I have a fix. The new functions need to be moved over to nsString.h
to avoid a include dependency cycle.
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder |
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•