commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] [Updated] (LANG-622) StringUtils.lastIndexOfAnyBut() function desired
Date Mon, 21 Oct 2013 05:24:42 GMT


Henri Yandell updated LANG-622:

    Fix Version/s:     (was: 3.x)
                   Patch Needed

> StringUtils.lastIndexOfAnyBut() function desired
> ------------------------------------------------
>                 Key: LANG-622
>                 URL:
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: david cogen
>            Priority: Minor
>             Fix For: Patch Needed
>         Attachments: LANG-622.patch,
> 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 was sent by Atlassian JIRA

View raw message