Open Bug 1553616 Opened 6 years ago Updated 2 years ago

Add begin() and end() methods to nsTStringRepr as aliases for BeginReading and BeginWriting

Categories

(Core :: XPCOM, enhancement)

enhancement

Tracking

()

People

(Reporter: kmag, Unassigned, Mentored)

Details

It would be nice to be able to transparently use nsTString instances as ranged iterators. It's easy enough to just call MakeSpan, I suppose, but that possibility didn't even occur to me until someone else suggested it.

Adding begin() and end() methods that just defer to BeginReading() and EndReading() would solve this problem pretty trivially.

Bugbug thinks this bug is a enhancement, but please change it back in case of error.

Type: defect → enhancement
Component: XPCOM → String
Component: String → XPCOM
Severity: normal → S3
Mentor: brennie
You need to log in before you can comment on or make changes to this bug.