commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Akerman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-892) Create a StringBuilderUtils.replaceAll function
Date Fri, 10 May 2013 16:51:15 GMT
Michael Akerman created LANG-892:
------------------------------------

             Summary: Create a StringBuilderUtils.replaceAll function
                 Key: LANG-892
                 URL: https://issues.apache.org/jira/browse/LANG-892
             Project: Commons Lang
          Issue Type: Wish
          Components: lang.*
    Affects Versions: 3.2
            Reporter: Michael Akerman
             Fix For: 3.2


java.lang.StringBuilder doesn't have a very good replace function.

I like using StringBuilderUtils.replaceAll when I want to do a lot of replacements on a single
copy and not burn up a lot of memory creating new Strings for each replacement.

I'm not familiar with how to offer this code the official way.  Here it is in pastebin:
http://pastebin.com/fqKMJ4Y8



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message