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

Raffaello Giulietti rgiulietti at openjdk.org
Fri Feb 17 21:54:24 UTC 2023


On Fri, 17 Feb 2023 21:21:30 GMT, ExE Boss <duke at openjdk.org> wrote:

>> Add an `indexOf()` variant allowing to specify both a lower and an upper bound on the search.
>
> Could we also get a similar overload for `String::lastIndexOf`?

@ExE-Boss See the second half [here](https://mail.openjdk.org/pipermail/core-libs-dev/2023-February/100391.html) for an explanation of why this is (currently) not part of this PR.

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

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


More information about the core-libs-dev mailing list