commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rocky D. Pulley (JIRA)" <>
Subject [jira] Created: (LANG-615) add indexesOf methods to StringUtils
Date Mon, 12 Apr 2010 18:07:49 GMT
add indexesOf methods to StringUtils

                 Key: LANG-615
             Project: Commons Lang
          Issue Type: New Feature
          Components: lang.*
            Reporter: Rocky D. Pulley
            Priority: Minor

Adding methods to StringUtils which support returning an array of indexes of a search string.

The following code would return int [0, 18, 45, 57]:

String s = "This is a test of this string which contains this a lot. this";
int[] idxs = indexesOfIgnoreCase(s, "this");
for (int i=0; i<idxs.length; i++)
	System.out.println("Pos: " + idxs[i]);

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message