[Cuis-dev] splitting a string
Luciano Notarfrancesco
luchiano at gmail.com
Fri Jun 14 19:49:20 PDT 2024
It should be subString, I vote to rename it as well as other similar
misspellings (for example, there are some subStr and subCollection).
On Sat, Jun 15, 2024 at 04:47 Mark Volkmann via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:
> 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.
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240615/b768fe25/attachment.htm>
More information about the Cuis-dev
mailing list