Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303648 Add String.indexOf(String str, int beginIndex, int endIndex)
  3. JDK-8315400

Release Note: New `indexOf(String,int,int)` Variant Added to `String` to Support a Range of Indices

    XMLWordPrintable

Details

    • In Review
    • 21

    Description

      A new method `indexOf(String str, int beginIndex, int endIndex)` method is added to `java.lang.String` to support a forward search of `String` `str`, and limited to the specified range of indices.

      Besides full control on the range, it is safer to use than `indexOf(String str, int fromIndex)` because it throws an exception on illegal search ranges.

      Attachments

        Activity

          People

            rgiulietti Raffaello Giulietti
            rgiulietti Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: