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

Some DGM niceness for Character

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.5.6, 1.6-beta-1
    • 1.5.7, 1.6-beta-2
    • groovy-jdk
    • None

    Description

      The iterator method on String returns a list of strings (each of length 1). It would be useful to also have the ability to return an array of char. I suggest getChars for this. It would also be nice to have trivial mappings of some of the common Character static methods to be available on chars, e.g. Character.isLowerCase(c) could be made available via c.isLowerCase().

      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: