8302590: Add String.indexOf(int ch, int fromIndex, int toIndex)
Roger Riggs
roger.riggs at oracle.com
Wed Feb 15 17:03:29 UTC 2023
Hi Raffaello,
What's the use case, can you give an example?
Seems reasonable; would you also add `lastIndexOf(int ch, int fromIndex,
int toIndex)`?
Not intrinsified, but for symmetry.
Regards, Roger
On 2/15/23 10:47 AM, Raffaello Giulietti wrote:
>
> Hello,
>
> Currently `String` does not expose a method `indexOf(int ch, int
> fromIndex, int toIndex)`, where the 3^rd 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/3bad7334/attachment.htm>
More information about the core-libs-dev
mailing list