commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-469) Commons-lang StringUtils head, tail and indexOfNth (with patch)
Date Fri, 14 Nov 2008 15:38:44 GMT

    [ https://issues.apache.org/jira/browse/LANG-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647635#action_12647635
] 

James Carman commented on LANG-469:
-----------------------------------

Can you explain what lastIndexOfNth is supposed to do (and shouldn't your parameter name be
"n" and not "occurrence"?)

> Commons-lang StringUtils head, tail and indexOfNth (with patch)
> ---------------------------------------------------------------
>
>                 Key: LANG-469
>                 URL: https://issues.apache.org/jira/browse/LANG-469
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Kalecser Pasquali Kurtz
>            Priority: Minor
>         Attachments: StringUtils_head_tail_indexofnth.diff
>
>
> Hello commons developers,
> I would like to propose the addition of these four methods to StringUtils class:
> public static String head(final String str, int lines)
> public static String tail(String str, int lines)
> public static int indexOfNth(String str, String searchStr, int occurrence)
> public static int lastIndexOfNth(String str, String searchStr, int occurrence)

-- 
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