You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Minhaj Mehmood (JIRA)" <ji...@apache.org> on 2010/07/24 05:49:50 UTC

[jira] Updated: (LANG-622) StringUtils.lastIndexOfAnyBut() function desired

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

Minhaj Mehmood updated LANG-622:
--------------------------------

    Attachment: StringUtilslLastIndexOfAnyButTest.java

Test class for the methods lastIndexOfAnyBut(String, String) and lastIndexOfAnyBut(CharSequence char[]).

> StringUtils.lastIndexOfAnyBut() function desired
> ------------------------------------------------
>
>                 Key: LANG-622
>                 URL: https://issues.apache.org/jira/browse/LANG-622
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: david cogen
>            Priority: Minor
>             Fix For: 3.1
>
>         Attachments: StringUtilslLastIndexOfAnyButTest.java
>
>
> class StringUtils needs the function lastIndexOfAnyBut()
> This would be like indexOfAnyBut() except searches from the end rather than the beginning.
> It would be like lastIndexOfAny() except looks for a character other than those in the string rather than for those in the string.
> This is the only one of the four combinations of "from beginning"/"from end" and "for any"/"for any but" that is not provided.
> Interestingly, the class header doc. mentions "LastIndexOfAnyBut" but the function does not exist - even as a private, as determined by class introspection.
> (This is not a frivolous request. I actually did need this function and ended up having to code a search loop.)

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