Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4088

DGM convenience method for String.tokenize(Character)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.7.1
    • 1.7.2
    • groovy-jdk
    • None

    Description

      It would be useful to have the following convenience method: DGM#tokenize(String self, Character token)
      This would allow e.g.: "/usr:/tmp".tokenize(File.pathSeparatorChar) without the need for the extra toString().
      For this case, File.pathSeparator could have been used but the principal still holds.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: