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) New method for StringUtils - unwrap a string token
Date Mon, 20 Jul 2015 12:35:05 GMT

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

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

GitHub user MSaifAsif opened a pull request:

    https://github.com/apache/commons-lang/pull/107

    LANG-1155

    LANG-1155

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSaifAsif/commons-lang LANG-1155

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-lang/pull/107.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #107
    
----
commit 9418663a438870bd058b3b612533f070a4660b6f
Author: MSaifAsif <saifasifmirza@gmail.com>
Date:   2015-07-20T12:29:35Z

    Added unwrap string functionality

----


> 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=Bar.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