C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Iterators for basic_string and basic_string_view find functions

From: Paul Fee <paul.f.fee_at_[hidden]>
Date: Fri, 1 Sep 2023 14:31:39 +0100
On Fri, Sep 1, 2023 at 1:18 PM 萧 叶轩 via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Proposal
>
> I propose to add a new set of find functions for basic_string and
> basic_string_view, which take and return iterators instead of indices.
> These functions will have the same name as the existing ones, but with an
> “i” prefix. For example:
>
To me, an "i" prefix suggests case insensitive search. Boost, for example,
has "icontains" and "ifind_first" that are case insensitive. Perhaps
consider a different name.

Received on 2023-09-01 13:31:52