Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String.split should take option configuration parameters #10686

Closed
DartBot opened this issue May 16, 2013 · 2 comments
Closed

String.split should take option configuration parameters #10686

DartBot opened this issue May 16, 2013 · 2 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-obsolete Closed as the reported issue is no longer relevant core-n P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented May 16, 2013

This issue was originally filed by bordo...@gmail.com


String.split should support optional parameters for modifying splitting behavior, similar to the functionality provided by com.google.common.base.Splitter in guava. For instance it would be useful to define the ability to specify that empty strings should be included in the result such that:

"/abc".split("/", includeEmpty: true) would return ["", "abc"]

@lrhn
Copy link
Member

lrhn commented May 16, 2013

Removed Type-Defect label.
Added Type-Enhancement, Area-Library, Triaged labels.

@DartBot DartBot added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. labels May 16, 2013
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed triaged labels Feb 29, 2016
@lrhn lrhn added the core-m label Aug 11, 2017
@lrhn
Copy link
Member

lrhn commented Aug 28, 2017

Just for the record: empty parts are included in the result, so they can be excluded as string.split("/").where((s)=>s.isNotEmpty).

@floitschG floitschG added core-n and removed core-m labels Aug 29, 2017
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-obsolete Closed as the reported issue is no longer relevant core-n P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants