[Cuis-dev] splitting a string
Mark Volkmann
r.mark.volkmann at gmail.com
Fri Jun 14 14:47:29 PDT 2024
Thanks Stephen! I keep running across inconsistent case in method names.
For example, the CharacterSequence class defines the methods subStrings and
substringsSeparatedBy: . Note the different case in the word "substring". I
wish those kinds of inconsistent naming could be cleaned up, but I imagine
doing so would break a lot of existing code.
On Fri, Jun 14, 2024 at 4:41 PM Stephen Travis Pope <
stephen at heaveneverywhere.com> wrote:
>
> Try
>
> 'Hello World' subStrings: ' '
>
> On Jun 14, 2024, at 2:29 PM, Mark Volkmann via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
> I know this should be easy, but I've searched and cannot find a method
> that splits a string on a delimiter and returns a collection of pieces. My
> first question is the name of that method. My second question is how I
> should have been able to find it on my own. Sadly the String class does not
> have a method named "split" and I couldn't find anything else that does it.
>
>
--
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240614/f8983121/attachment.htm>
More information about the Cuis-dev
mailing list