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

Add method containsAllWords to WordUtils

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5
    • lang.text.*

    Description

      Placeholder for https://github.com/apache/commons-lang/pull/81

      Checks if the String contains all words.

      StringUtils.containsAllWords("lorem ipsum dolor sit amet", "ipsum", "lorem", "dolor") == true
      StringUtils.containsAllWords("lorem ipsum dolor sit amet", "ipsum", null, "lorem", "dolor") == false
      StringUtils.containsAllWords("ab", "b") == false
      

      Attachments

        Activity

          People

            britter Benedikt Ritter
            britter Benedikt Ritter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: