RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v5]
Jaikiran Pai
jpai at openjdk.org
Mon May 8 12:23:16 UTC 2023
On Mon, 24 Apr 2023 12:18:55 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
>> Add `split()` overloads to `String` and `java.util.regex.Pattern` that, in addition to the substrings returned by current `split()` variants, also return the delimiters matching the regular expression.
>
> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
>
> Small optimization in private split().
> Added tests to compare String and Pattern implementations, in particular for one char regex.
Marked as reviewed by jpai (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/13305#pullrequestreview-1416695992
More information about the core-libs-dev
mailing list