Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1155

Add StringUtils#unwrap

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6
    • lang.*

    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

      StringUtils.java
           StringUtils.unwrap("\'abc\'", "\'")    = "abc"
           StringUtils.unwrap("\"abc\"", "\"")    = "abc"
           StringUtils.unwrap("AABabcBAA", "AA")  = "BabcB"
      

      Attachments

        Issue Links

          Activity

            People

              pascalschumacher Pascal Schumacher
              SaifAsif Saif Asif
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: