Closed
Bug 131293
Opened 22 years ago
Closed 21 years ago
StringBeginsWith and StringEndsWith
Categories
(Core :: XPCOM, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.4final
People
(Reporter: dbaron, Assigned: dbaron)
Details
(Whiteboard: [patch])
Attachments
(1 file, 1 obsolete file)
27.42 KB,
patch
|
jst
:
review+
alecf
:
superreview+
asa
:
approval1.4+
|
Details | Diff | Splinter Review |
I want to add StringBeginsWith and StringEndsWith to nsReadableUtils. They're very common operations.
Assignee | ||
Updated•22 years ago
|
Target Milestone: --- → mozilla1.0
Comment 2•22 years ago
|
||
I'm all for it.
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Assignee | ||
Updated•22 years ago
|
Target Milestone: mozilla1.0 → mozilla1.1beta
Assignee | ||
Updated•22 years ago
|
Target Milestone: mozilla1.1beta → mozilla1.2alpha
Assignee | ||
Updated•22 years ago
|
Target Milestone: mozilla1.2alpha → Future
Assignee | ||
Comment 3•22 years ago
|
||
I should also add UTF8ToNewUnicode while I'm there...
Assignee | ||
Comment 4•22 years ago
|
||
I moved jag's UTF8 conversion character sinks out of string/obsolete/. They don't seem obsolete to me. :-) I'm wondering whether I should put them in their own file -- very few customers actually need them, so perhaps they should be in nsUTF8Utils.h instead of nsReadableUtils.h?
Assignee | ||
Updated•22 years ago
|
Whiteboard: [patch]
Assignee | ||
Updated•22 years ago
|
Target Milestone: Future → mozilla1.3alpha
Assignee | ||
Updated•22 years ago
|
Attachment #102703 -
Flags: review?(jaggernaut)
Comment 5•22 years ago
|
||
Comment on attachment 102703 [details] [diff] [review] initial patch, untested I'd say lets move our UTF8 conversion utils into a seperate file. On String*With: I guess the check for sub_len > src_len is pretty cheap, but very likely the odd case, and since operator== (or rather, Equals) does a length comparison itself, perhaps we could leave it out?
Assignee | ||
Updated•22 years ago
|
Attachment #102703 -
Flags: superreview?(alecf)
Comment 6•22 years ago
|
||
Comment on attachment 102703 [details] [diff] [review] initial patch, untested nice! sr=alecf I am looking forward to using the UTF8 converter class in some of my other stuff too.
Attachment #102703 -
Flags: superreview?(alecf) → superreview+
Assignee | ||
Comment 7•21 years ago
|
||
> On String*With:
> I guess the check for sub_len > src_len is pretty cheap, but very likely the
> odd case, and since operator== (or rather, Equals) does a length comparison
> itself, perhaps we could leave it out?
We can't leave it out, since that would mean that |Substring| would be given
invalid parameters. Or we could leave it out and make the parameters to
substring much more complicated.
Assignee | ||
Comment 8•21 years ago
|
||
Use a separate file. (Code also recopied from the current version.)
Attachment #102703 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #123819 -
Flags: superreview?(alecf)
Attachment #123819 -
Flags: review?(jaggernaut)
Assignee | ||
Updated•21 years ago
|
Target Milestone: mozilla1.3alpha → mozilla1.4final
Comment 9•21 years ago
|
||
Comment on attachment 123819 [details] [diff] [review] revised patch r=jst
Attachment #123819 -
Flags: review?(jaggernaut) → review+
Comment 10•21 years ago
|
||
Comment on attachment 123819 [details] [diff] [review] revised patch this looks great! sr=alecf
Comment 11•21 years ago
|
||
Comment on attachment 123819 [details] [diff] [review] revised patch oops, sr=alecf
Attachment #123819 -
Flags: superreview?(alecf) → superreview+
Comment 12•21 years ago
|
||
Comment on attachment 123819 [details] [diff] [review] revised patch sr=jag
Assignee | ||
Comment 13•21 years ago
|
||
Comment on attachment 123819 [details] [diff] [review] revised patch Requesting 1.4 approval -- this is low risk since all it's doing is moving code and adding new functions that aren't used yet. However, I think it would be good to have it on the branch since if it's not on the branch it might make it harder to move patches from trunk to branch (since we're likely to start using these functions on the trunk).
Attachment #123819 -
Flags: approval1.4?
Comment 14•21 years ago
|
||
Comment on attachment 123819 [details] [diff] [review] revised patch a=asa (on behalf of drivers) for checkin to 1.4.
Attachment #123819 -
Flags: approval1.4? → approval1.4+
Assignee | ||
Comment 15•21 years ago
|
||
Fix checked in to trunk, 2003-05-21 15:20 -0700.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Attachment #102703 -
Flags: review?(jaggernaut)
Updated•3 years ago
|
Component: String → XPCOM
You need to log in
before you can comment on or make changes to this bug.
Description
•