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

Rob Tompkins updated TEXT-86:
-----------------------------
    Fix Version/s: 1.x

> StrBuilder Add New Replace Method
> ---------------------------------
>
>                 Key: TEXT-86
>                 URL: https://issues.apache.org/jira/browse/TEXT-86
>             Project: Commons Text
>          Issue Type: New Feature
>            Reporter: BELUGA BEHR
>            Priority: Minor
>             Fix For: 1.x
>
>
> I was looking at some code and thought TEXT might help.  Please add to 
> {{org.apache.commons.text.StrBuilder}} a new method signature:
> {code}
> replaceAll(char search, String replaceStr)
> {code}
> This would be helpful for escaping individual characters:
> {code}
>   /*
>    * (non-Javadoc)
>    *
>    * @see java.sql.PreparedStatement#setString(int, java.lang.String)
>    */
>   public void setString(int parameterIndex, String x) throws SQLException {
>      x=x.replace("'", "\\'");
>      this.parameters.put(parameterIndex,"'"+x+"'");
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to