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

JSR 204: add offsetByCodePoints() to Character, String and StringBuffer/Builder

XMLWordPrintable

    • b47
    • generic
    • generic

      It's been requested by the JSR 204 Expert Group to add methods to return the index that is offset from the given index and Unicode code points. For example,

      str.offsetByCodePoints(0, 1)

      will return the index to the second character in String str.

      Proposed methods are:

      String.offsetByCodePoints(int index, int offset)
      StringBuffer.offsetByCodePoints(int index, int offset)
      StringBuilder.offsetByCodePoints(int index, int offset)
      Character.offsetByCodePoints(CharSequence seq, int index, int offset)
      Character.offsetByCodePoints(char[] a, int index, int offset)

      ###@###.### 2004-03-22

            okutsu Masayoshi Okutsu
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: