Closed Bug 336066 Opened 18 years ago Closed 11 years ago

Provide Find methods

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: darin.moz, Unassigned)

Details

Provide Find methods

All of these variants would be nice:
{LowerCase}{R}Find{Char,ASCII,Literal}

The idea is to create variants on Find that resemble those that exist for Equals.  These methods should exist on nsTAString and nsTSubstring.
maybe they should be global template functions, like:

template<class T>
index_type FindCharInString(T str, T::char_type c);

or something
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INCOMPLETE
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.