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] [Commented] (LANG-1155) Add StringUtils#unwrap
Date Mon, 31 Oct 2016 19:07:59 GMT

    [ https://issues.apache.org/jira/browse/LANG-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15623057#comment-15623057
] 

ASF GitHub Bot commented on LANG-1155:
--------------------------------------

Github user PascalSchumacher commented on the issue:

    https://github.com/apache/commons-lang/pull/107
  
    Thanks! :+1: 


> Add StringUtils#unwrap
> ----------------------
>
>                 Key: LANG-1155
>                 URL: https://issues.apache.org/jira/browse/LANG-1155
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 4.0
>            Reporter: Saif Asif
>              Labels: StringUtil, commons-lang,
>
> Proposal to add a new method namely *unwrap* to StringUtils. 
> The method will be responsible for unwrapping a string token from a character (or another
string token). Basically, It will be the opposite of the StringUtils.wrap() method.
> Possible outcomes of the method
> {code:title=StringUtils.java|borderStyle=solid}
>      StringUtils.unwrap("\'abc\'", "\'")    = "abc"
>      StringUtils.unwrap("\"abc\"", "\"")    = "abc"
>      StringUtils.unwrap("AABabcBAA", "AA")  = "BabcB"
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message