std.string and std.algorithm: what to do?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu May 14 22:09:37 PDT 2009
Lionello Lunesu wrote:
>
> "John C" <johnch_atms at hotmail.com> wrote in message
> news:guhel3$18kk$1 at digitalmars.com...
>> Andrei Alexandrescu Wrote:
>>
>>> Cool! So then how do I rename find, ifind, rfind, and irfind in
>>> std.string?
>>>
>>> Andrei
>>
>> indexOf(bool ignoreCase = false), lastIndexOf(bool ignoreCase = false).
>
> Please, an enum instead of bool... It's not apparent what indexOf(true)
> is supposed to do when you encounter it. Yes, named parameters would
> solve this :)
Yah, I defined
enum CaseSensitive { no, yes }
Andrei
More information about the Digitalmars-d
mailing list