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

Saif Asif updated LANG-1155:
----------------------------
    Description: 
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}


  was:
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=Bar.java|borderStyle=solid}
     StringUtils.unwrap("\'abc\'", "\'")    = "abc"
     StringUtils.unwrap("\"abc\"", "\"")    = "abc"
     StringUtils.unwrap("AABabcBAA", "AA")  = "BabcB"
{code}



> New method for StringUtils - unwrap a string token
> --------------------------------------------------
>
>                 Key: LANG-1155
>                 URL: https://issues.apache.org/jira/browse/LANG-1155
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 3.4
>            Reporter: Saif Asif
>             Fix For: 3.4
>
>
> 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)

Reply via email to