Closed
Bug 979556
Opened 10 years ago
Closed 10 years ago
Make ReplaceChar take a UTF-16 array
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: smontagu, Assigned: smontagu)
References
Details
Attachments
(2 files, 1 obsolete file)
2.15 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
1.59 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
See bug 847242 comment 4: >> + for (uint32_t i = 0; i < ArrayLength(kSeparators); ++i) { >> + aBpd->mBuffer.ReplaceChar(kSeparators[i], kSpace); > >This doesn't seem efficient. Let's make ReplaceChar work with a UTF16 array >instead.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8385602 -
Flags: review?(benjamin)
Assignee | ||
Comment 2•10 years ago
|
||
An existing call site using the same pattern as my patch.
Attachment #8385612 -
Flags: review?(benjamin)
Updated•10 years ago
|
Attachment #8385602 -
Flags: review?(benjamin) → review+
Comment 3•10 years ago
|
||
Comment on attachment 8385612 [details] [diff] [review] Convert caller Don't you have to null-terminate unsafeBidiCharacters now?
Attachment #8385612 -
Flags: review?(benjamin) → review-
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8385612 -
Attachment is obsolete: true
Attachment #8385661 -
Flags: review?(benjamin)
Updated•10 years ago
|
Attachment #8385661 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dc13389afbe5 https://hg.mozilla.org/integration/mozilla-inbound/rev/d3005bbf540f Marking in-testsuite+ because this is effectively covered by uriloader/exthandler/tests/mochitest/test_unsafeBidiChars.xhtml
Flags: in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/dc13389afbe5 https://hg.mozilla.org/mozilla-central/rev/d3005bbf540f
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Updated•3 years ago
|
Component: String → XPCOM
You need to log in
before you can comment on or make changes to this bug.
Description
•