commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (TEXT-86) StrBuilder Add New Replace Method
Date Tue, 05 Mar 2019 13:35:00 GMT

     [ https://issues.apache.org/jira/browse/TEXT-86?focusedWorklogId=207779&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-207779
]

ASF GitHub Bot logged work on TEXT-86:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Mar/19 13:34
            Start Date: 05/Mar/19 13:34
    Worklog Time Spent: 10m 
      Work Description: garydgregory commented on issue #106: TEXT-86
URL: https://github.com/apache/commons-text/pull/106#issuecomment-469681113
 
 
   -1: I do not think we should augment a deprecated class.
   
   > @deprecated Deprecated as of 1.3, use {@link TextStringBuilder} instead. This class
will be removed in 2.0.
 
----------------------------------------------------------------
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:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 207779)
    Time Spent: 0.5h  (was: 20m)

> 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: 0.5h
>  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)

Mime
View raw message