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 Sun, 03 Mar 2019 19:20:00 GMT

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

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

                Author: ASF GitHub Bot
            Created on: 03/Mar/19 19:19
            Start Date: 03/Mar/19 19:19
    Worklog Time Spent: 10m 
      Work Description: coveralls commented on issue #106: TEXT-86
URL: https://github.com/apache/commons-text/pull/106#issuecomment-469054374
 
 
   
   [![Coverage Status](https://coveralls.io/builds/21957551/badge)](https://coveralls.io/builds/21957551)
   
   Coverage increased (+0.02%) to 97.918% when pulling **b25478e5de3580976b25ad16b9871be5087e8bfd
on CAPS50:TEXT-86** into **d880f686338f63b8e0860ad37da190fda792eecf on apache:master**.
   
 
----------------------------------------------------------------
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: 206929)
    Time Spent: 20m  (was: 10m)

> 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
>
>          Time Spent: 20m
>  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