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

Raffaello Giulietti raffaello.giulietti at oracle.com
Wed Feb 15 15:47:00 UTC 2023


Hello,

Currently `String` does not expose a method `indexOf(int ch, int fromIndex, int toIndex)`, where the 3rd parameter limits the search to positions up to it (exclusive). JBS issue [1] has been filed as an “Enhancement” to add it to the codebase.

Before preparing a PR and a CSR, I would like to gather opinions and suggestions.

Greetings
Raffaello

----

[1] https://bugs.openjdk.org/browse/JDK-8302590

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230215/438c42c5/attachment-0001.htm>


More information about the core-libs-dev mailing list