commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LANG-348) Add StringUtils.repeat with separator
Date Thu, 25 Feb 2010 19:36:28 GMT

     [ https://issues.apache.org/jira/browse/LANG-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niall Pemberton updated LANG-348:
---------------------------------

    Fix Version/s:     (was: 3.0)
                   2.5

> Add StringUtils.repeat with separator
> -------------------------------------
>
>                 Key: LANG-348
>                 URL: https://issues.apache.org/jira/browse/LANG-348
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: Kees van Dieren
>            Priority: Minor
>             Fix For: 2.5
>
>
> 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.


Mime
View raw message