RFR: 8302590: Add String.indexOf(int ch, int fromIndex, int toIndex) [v3]

Raffaello Giulietti rgiulietti at openjdk.org
Wed Mar 1 16:25:30 UTC 2023


On Tue, 28 Feb 2023 13:31:56 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

>> Add an `indexOf()` variant allowing to specify both a lower and an upper bound on the search.
>
> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8302590: Add String.indexOf(int ch, int fromIndex, int toIndex)

The proposed `indexOf()` method now throws a `StringIndexOutOfBoundsException` on illegal indices.
The [CSR](https://bugs.openjdk.org/browse/JDK-8302680) has been updated.

-------------

PR: https://git.openjdk.org/jdk/pull/12600


More information about the core-libs-dev mailing list