C++ Logo

std-proposals

Advanced search

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

From: Yexuan Xiao <bizwen_at_[hidden]>
Date: Fri, 1 Sep 2023 14:00:58 +0000
Thank you for providing the information and suggestions. I think the “x” prefix might be a good candidate, as it is less frequently used in English and sometimes serves as an abbreviation for “extend”.

________________________________
From: Std-Proposals <std-proposals-bounces_at_[hidden]> on behalf of Paul Fee via Std-Proposals <std-proposals_at_[hidden]>
Sent: Friday, September 1, 2023 21:31
To: std-proposals_at_[hidden] <std-proposals_at_[hidden]>
Cc: Paul Fee <paul.f.fee_at_[hidden]>
Subject: Re: [std-proposals] Iterators for basic_string and basic_string_view find functions

On Fri, Sep 1, 2023 at 1:18 PM XiaoYexuan via Std-Proposals <std-proposals_at_[hidden]<mailto: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 14:01:04