Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94623 invoked from network); 2 Aug 2016 01:37:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2016 01:37:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=david.proweb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=david.proweb@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.171 as permitted sender) X-PHP-List-Original-Sender: david.proweb@gmail.com X-Host-Fingerprint: 209.85.220.171 mail-qk0-f171.google.com Received: from [209.85.220.171] ([209.85.220.171:32896] helo=mail-qk0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/51-20009-939FF975 for ; Mon, 01 Aug 2016 21:36:57 -0400 Received: by mail-qk0-f171.google.com with SMTP id p74so162212010qka.0 for ; Mon, 01 Aug 2016 18:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=J7EH/RbCQHrpZABYFGk6ASg3Gq7PPUkKm5tbURs9hWw=; b=MXmQg15pFEN/NJ/vN4wPrGWoUjN6YQ0q3sgCEA6lbOeAoT6c81ND6kZzcnlDMs4cGb +ca8rHYGixJbNIeIPG9EIe42axN7RXa2Id1BQ8mRfuaKyr5okzyGATEOj6g1ihxS3CzS xiis5n9Bii4+QFDfsDeHopH6QYifLJjB2l+aUAbsRJZucfbMjeMFHd/4HfhTkdd/qdrx sjauEXNKuWqW7CkDwcnOBhDfRsz1dEyAumVUzri3x9UxyOXUl2HD1Nz2wHQD/1vjyjiD 46dxEaAwmr1IM+WmPhV66xD84G7V8nRW+aRCgI6fXw7lcNrtFpI2NzE7z7yJ2JlPMMvQ Wbng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=J7EH/RbCQHrpZABYFGk6ASg3Gq7PPUkKm5tbURs9hWw=; b=Fc/2STosrTooaav9gPW1bdIcEcEs5LwtgddoH/s3j2j9l48NPMCduL8Yb+cNN63bba V9Ek4uYSg6Bb5F9hP9WLYN++KN8f1SdMcmLnF9QV7Q9Ps5amjJheqra+ARZRkWoGaoFm nZBNBXJd0qyIc5GMRlPAhi9FPC/lpeR+O7uqr29QWHAyOlvp6KkEP7LgklLgwz8dMe+l NRsCyVacGelTNqJhvPxeUO4uSctAk/kJbBPeFdQWU+84nY8pnh3PjIP5RqPMZtvA0gaa 6MlIqEtlpEpB6oaD3jK6vTodreDAVUdFiEyYuIja3R7f+SsUMuMjXcJh9TviqCXODcU4 5kgw== X-Gm-Message-State: AEkoouuCLzx68loAkE+qPS/uzzngAjA2nkgGpV1oByUmECCrw0xfuXIF7Xp+U0sKI9/4Hde9bb/R9In7agewgA== X-Received: by 10.55.108.2 with SMTP id h2mr69639952qkc.202.1470101814214; Mon, 01 Aug 2016 18:36:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.45.67 with HTTP; Mon, 1 Aug 2016 18:36:33 -0700 (PDT) In-Reply-To: References: <8442f1fa5544b2ca03e7cebbc64e8e5c@wkhudgins.info> Date: Mon, 1 Aug 2016 22:36:33 -0300 Message-ID: To: Yasuo Ohgaki Cc: Sara Golemon , will@wkhudgins.info, PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC Posted for str_begins and str_ends functions From: david.proweb@gmail.com (David Rodrigues) Sara Golemon wrote: > Feeling "meh" on it (neither for nor against), but I would consider > consistency with other str*() functions by making case-insensitivity > live in separate functions rather than as a parameter. e.g. > str_begins(), str_ibegins(), str_ends(), end_iends() I guess that "i" isn't appliable when it have slashes. In this case, functions should be: strbegins, stribegins, strends, striends. In all case, I think that is better a third parameter and keep underlined. Yasuo Ohgaki wrote: > +1 for having functions for case insensitivity. > I'm not sure if we should have "s". i.e. str_begin"s". I think that "s" is good here. Sounds better for me, but I don't know if it is right in english. In JS, for instance, we have startsWith. It have a "s" too. 2016-08-01 21:06 GMT-03:00 Yasuo Ohgaki : > On Tue, Aug 2, 2016 at 7:56 AM, Sara Golemon wrote: >> On Mon, Aug 1, 2016 at 3:52 PM, wrote: >>> I recently emailed the group about submitting an RFC for str_begins() and >>> str_ends() functions. The RFC has now been officially submitted and is >>> viewable at: >>> >>> https://wiki.php.net/rfc/add_str_begin_and_end_functions >>> >> Feeling "meh" on it (neither for nor against), but I would consider >> consistency with other str*() functions by making case-insensitivity >> live in separate functions rather than as a parameter. e.g. >> str_begins(), str_ibegins(), str_ends(), end_iends() > > +1 for having functions for case insensitivity. > I'm not sure if we should have "s". i.e. str_begin"s". > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- David Rodrigues