commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kalecser Kurtz" <kalec...@gmail.com>
Subject Commons-lang StringUtils feature request with patch
Date Wed, 12 Nov 2008 17:16:20 GMT
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)

I've sent a patch attached to this message, it contains both the
implementation and the tests. Please let me know if you don't receive it.

Kalecser

Mime
View raw message