commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <ggreg...@seagullsw.com>
Subject RE: [lang] indexOf not first or last
Date Mon, 08 Sep 2003 17:10:57 GMT
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:atagunov@mail.cnt.ru]
> 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" <phil@steitz.com>
> >> 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: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message