You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2016/10/31 19:08:58 UTC

[jira] [Resolved] (LANG-1155) Add StringUtils#unwrap

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

Pascal Schumacher resolved LANG-1155.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.6

> Add StringUtils#unwrap
> ----------------------
>
>                 Key: LANG-1155
>                 URL: https://issues.apache.org/jira/browse/LANG-1155
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Saif Asif
>            Assignee: Pascal Schumacher
>              Labels: StringUtil, commons-lang,
>             Fix For: 3.6
>
>
> 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)