[
https://issues.apache.org/jira/browse/TEXT-86?focusedWorklogId=269800&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-269800
]
ASF GitHub Bot logged work on TEXT-86:
--------------------------------------
Author: ASF GitHub Bot
Created on: 30/Jun/19 00:14
Start Date: 30/Jun/19 00:14
Worklog Time Spent: 10m
Work Description: garydgregory commented on pull request #106: TEXT-86
URL: https://github.com/apache/commons-text/pull/106
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 269800)
Time Spent: 40m (was: 0.5h)
> 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: David Mollitor
> Priority: Minor
> Fix For: 1.x
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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
(v7.6.3#76005)