[Cuis-dev] splitting a string
Mark Volkmann
r.mark.volkmann at gmail.com
Fri Jun 14 20:02:55 PDT 2024
I agree on renaming all "subString" to "substring", but I don't think I get
a vote on that.
On Fri, Jun 14, 2024 at 9:51 PM Luciano Notarfrancesco <luchiano at gmail.com>
wrote:
> pf, i mean “it should be substring” of course, lol
>
> On Sat, Jun 15, 2024 at 09:49 Luciano Notarfrancesco <luchiano at gmail.com>
> wrote:
>
>> 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
>>>
>>
--
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240614/12e5b5c8/attachment-0001.htm>
More information about the Cuis-dev
mailing list