Ticket #145 (accepted enhancement)
complete the collection of string.split extension methods
Reported by: | jonathandavid | Owned by: | jonathandavid |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | string, split | Cc: |
Description
.NET's core string class has versions that take the separators as a char[].
Cobra's January 09 update adds extension methods that take a List<of char> separator instead, which is more convenient.
Currently missing:
* All the versions that take the max. number of tokens in addition to the separators.
* Versions that take the separator as a string (this is the easiest to use).
* Versions that take the separator as char* (this is the most generic way, the more specific ones would be left mainly for efficiency). The char* version would probably lead us to remove the one that currently takes a IList<of T>.
See forum thread: http://cobra-language.com/forums/viewtopic.php?f=4&t=292&p=1727#p1727