CVS currently defines StringUtils.ordinalIndexOf() as it is currently the
most popular choice (see email thread). 

Give it a whirl in code and see how you like it.

Gary

> -----Original Message-----
> From: Anton Tagunov [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2003 03:22
> To: Jakarta Commons Developers List
> Subject: Re: [lang] indexOf not first or last
> 
> Hello Stephen!
> 
> SC> From: "Phil Steitz" <[EMAIL PROTECTED]>
> >> Gary Gregory wrote:
> >> 1. Yes, the name sucks, but nothing nice jumps out at me. Of the
> >> alternatives that you have listed, I like "indexOfOccurrence" the best.
> >> Another one to consider might be "ordinalIndexOf".
> 
> SC> I think I prefer nthIndexOf, but indexOfOccurance may also be OK.
> 
> nIndexOf was so short to type and easy to remember, ugly, but
> laboriolus duck..
> 
> Anton
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to