Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8291660

Grapheme support in BreakIterator

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 20
    • core-libs
    • b15
    • generic
    • generic

    Description

      In order to stream extended grapheme clusters in a String, users have to create a String array first, then stream it, such as:
      ```
      Arrays.stream("πŸ‡ΊπŸ‡ΈπŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦".split("\\b{g}"))
      ```
      Instead of this rather vague instruction, enhancing the existing `getCharacterInstance()` method to support grapheme breaks would be appropriate.

      Attachments

        Issue Links

          Activity

            People

              naoto Naoto Sato
              naoto Naoto Sato
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: