RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern [v2]
Raffaello Giulietti
rgiulietti at openjdk.org
Fri Apr 7 14:11:36 UTC 2023
> 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:
8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern
Restored original JavaDoc to existing methods.
Replaced proposed parametrized split(*, boolean) methods with suggested splitWithDelimiters(*) variants.
Adjusted tests accordingly.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/13305/files
- new: https://git.openjdk.org/jdk/pull/13305/files/e7b7c659..597ee0ce
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=13305&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=13305&range=00-01
Stats: 360 lines in 3 files changed: 192 ins; 79 del; 89 mod
Patch: https://git.openjdk.org/jdk/pull/13305.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13305/head:pull/13305
PR: https://git.openjdk.org/jdk/pull/13305
More information about the core-libs-dev
mailing list