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

Add new splitByWholeSeparatorPreserveAllTokens() methods to StringUtils

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.4
    • lang.*
    • None

    Description

      I added two methods I found helpful.

      public static String[] splitByWholeSeparatorPreserveAllTokens(String str, String separator, int max)
      public static String[] splitByWholeSeparatorPreserveAllTokens(String str, String separator)

      Attachments

        1. StringUtils-enhancements.patch
          11 kB
          Cameron Whitehead
        2. LANG-257.patch
          8 kB
          Henri Yandell

        Activity

          People

            Unassigned Unassigned
            camchops Cameron Whitehead
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: