commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LANG-566) Replace lastIndexOf methods with -ve index support?
Date Sun, 07 Feb 2010 05:32:28 GMT

     [ https://issues.apache.org/jira/browse/LANG-566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell closed LANG-566.
------------------------------

    Resolution: Won't Fix

Thanks for the comment Chandrashekar - exposes this as a mislabeled idea.

That's what Paul and I get for dumping a random idea from a conversation.

The notion is to support negative indices - i.e.   "foo"[-1]   or   "foofoofoo"[3:-4]. 

indexOf is the wrong method though, a negative index doesn't make sense there.

I'm going to close as wontfix. The above two would equal negative handling versions of charAt
and substring, but I don't think it's a needed enough idea.

> Replace lastIndexOf methods with -ve index support?
> ---------------------------------------------------
>
>                 Key: LANG-566
>                 URL: https://issues.apache.org/jira/browse/LANG-566
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Henri Yandell
>             Fix For: 3.0
>
>
> Random idea from a conversation with Paul.
> What if StringUtils.indexOf supported -ve indices instead of forcing developers to deal
with lastIndexOf?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message