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

Grapheme support in BreakIterator

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 20
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      generic
    • OS:
      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

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

                Dates

                Created:
                Updated:
                Resolved: