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

StringGroovyMethods should have a getCodePoints method

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0-alpha-4
    • None
    • None

    Description

      The String class has:

      byte[] getBytes()
      

      Groovy provides in StringGroovyMethods:

      char[] getChars(final CharSequence self)
      

      I propose adding to StringGroovyMethods:

      int[] getCodePoints(final CharSequence self)
      

      It is basically just a shortcut to ".codePoints().toArray()" but allows traditional Groovy conventions of using the "codePoints" property.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: