Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 51737 invoked from network); 12 Apr 2010 18:08:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 18:08:15 -0000 Received: (qmail 57246 invoked by uid 500); 12 Apr 2010 18:08:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 57165 invoked by uid 500); 12 Apr 2010 18:08:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 57157 invoked by uid 99); 12 Apr 2010 18:08:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 18:08:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 18:08:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3CI7nhg029280 for ; Mon, 12 Apr 2010 14:07:50 -0400 (EDT) Message-ID: <27171241.1681271095669895.JavaMail.jira@thor> Date: Mon, 12 Apr 2010 14:07:49 -0400 (EDT) From: "Rocky D. Pulley (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (LANG-615) add indexesOf methods to StringUtils MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org add indexesOf methods to StringUtils ------------------------------------ Key: LANG-615 URL: https://issues.apache.org/jira/browse/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]: {code} 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