Closed Bug 1591191 Opened 6 years ago Closed 6 years ago

Move Compare method to work on substrings

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: zbraniecki, Assigned: emilio)

References

Details

Attachments

(1 file)

Based on https://phabricator.services.mozilla.com/D49668

Compare method currently only works on String, but it should cover Substring as well.

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Flags: needinfo?(emilio)

Zibi is working on replacing some string based APIs with some things that return
substrings, so we could use this.

Alternatively he'd have to do something like:

Compare(myCSubstring, nsDependentCSubstring(aTag, strlen(aTag)))

or something of that sort, which looks a bit uglier.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eb3d67637a9b Move compare and EqualsIgnoreAsciiCase to nsTStringRepr. r=erahm
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fa1628003bf9 Move compare and EqualsIgnoreAsciiCase to nsTStringRepr. r=erahm
Flags: needinfo?(emilio)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: