You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2009/10/20 07:20:59 UTC
[jira] Closed: (LANG-348) Add StringUtils.repeat with separator
[ https://issues.apache.org/jira/browse/LANG-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell closed LANG-348.
------------------------------
Resolution: Fixed
svn ci -m "Adding a StringUtils.repeat(String, String separator, int) method per request in LANG-348"
Sending src/java/org/apache/commons/lang/StringUtils.java
Sending src/test/org/apache/commons/lang/StringUtilsTest.java
Transmitting file data ..
Committed revision 826955.
> Add StringUtils.repeat with separator
> -------------------------------------
>
> Key: LANG-348
> URL: https://issues.apache.org/jira/browse/LANG-348
> Project: Commons Lang
> Issue Type: New Feature
> Reporter: Kees van Dieren
> Priority: Minor
> Fix For: 3.0
>
>
> I would like to have a repeat method with the ability to set a separator:
> public static String repeat(String str, char separatorChar, int repeat)
> Usage scenario: generate insert statements for JDBC preparedstatements:
> assertEquals("?,?,?,?", StringUtils.repeat("?", ',', 4));
> Can this be added to commons-lang?
> Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.