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