Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106041 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 528 invoked from network); 23 Jun 2019 13:20:01 -0000 Received: from unknown (HELO mail-wm1-f44.google.com) (209.85.128.44) by pb1.pair.com with SMTP; 23 Jun 2019 13:20:01 -0000 Received: by mail-wm1-f44.google.com with SMTP id 207so10079931wma.1 for ; Sun, 23 Jun 2019 03:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=TZPdPjZfZWnBctKyS+HFKz0QW3T9d8Oxf5yfrdDziOE=; b=q9JNuXq2TXXtxzb55zgX7WUVv0WIoz0jvvJsBg8OPEICosct5j7aMRI7vsdS5YV1m2 BVyXSkF/yLhou1InO2p9WU4Wj1PZeApKamu3MEQH7KA7KzvWIw06h0P5xwJhIpNK7E65 oetORPvtWOCP72YJjc07Gkii+5zhEa2WHsR4Z1BRC8tx2Wto7wAmIbeb2M1TMV7RrZs6 Z2PbuZzsd9tDNo/N3AqXhkNFq6BfSOc1G1oTNGkSzVwnxm7BIJBYXRsWToaZSnovL4wd bbhLoTnq8LhYI5i6SLcIrtxGGPlJFsi//BDqxamkBzATc7a6zf4VpSLwavYQWHShc3D4 nHIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=TZPdPjZfZWnBctKyS+HFKz0QW3T9d8Oxf5yfrdDziOE=; b=oLtjujWoL5Z5IDlnMM71BmPZ/7scy/HxgB+/5GNNF37lYlbaNBG4DSBe4GBdqYYJ6X 4pZGUYqICxJENKnVfU5SiSfgNIBU5R3Vpba1iNu0OCGuF0DkpyvJQd8MclodEj+EIuo3 p5NVM/WkDKLpn3zx/G+Csb6lrOvdP3PkW7Hueb5Y79GfdMeZop5zSmr4jRXrQulw8kqj 6fbkWe/VeSIfJuEV+fPI9NzlkdWAaB2J9TEr4RnpCRCquvT3iMcIA75X1mlFrM92EMmK Ub38of8Dux0Xx9N2ANErLD9qPoKMXxBEDJrhQazIHj+Pv+KgkvH6131+KnYxdDMTlhj4 p04g== X-Gm-Message-State: APjAAAWoCyUUq9HftFHQXGZRvNwhAmNcBSmSpp0j2FKkjHzbNQapk+go oiKk78vI8dKXfL0lImizNXGEpLh5 X-Google-Smtp-Source: APXvYqyho7gA4Gg0mldfzfXVPRsxB1WZWi5VgMsdGmFBh6ilXN2WQqQnbNYKrC0alkMUGzlq0DiHEg== X-Received: by 2002:a1c:7217:: with SMTP id n23mr11531246wmc.47.1561286137977; Sun, 23 Jun 2019 03:35:37 -0700 (PDT) Received: from [192.168.0.12] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.gmail.com with ESMTPSA id t198sm11412756wmt.2.2019.06.23.03.35.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 Jun 2019 03:35:37 -0700 (PDT) Date: Sun, 23 Jun 2019 11:35:36 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <2CF672F8-12F5-4D37-8B8C-591A6E695220@benramsey.com> References: <8442f1fa5544b2ca03e7cebbc64e8e5c@wkhudgins.info> <683c5da474e13283030cac3d0c0ec080@wkhudgins.info> <2c37999d1e5372ae6ab48bfce5420796@wkhudgins.info> <2CF672F8-12F5-4D37-8B8C-591A6E695220@benramsey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: <3E2100B1-7BF7-4C9F-AA77-D82924A2D5FC@gmail.com> Subject: Re: [PHP-DEV] [RFC] Desire to move RFC add_str_begin_and_end_functions to a vote From: rowan.collins@gmail.com (Rowan Collins) On 22 June 2019 20:56:24 BST, Ben Ramsey wrote: >Perhaps it would only be an issue with the case-insensitive versions, >as Nikita points out? If so, can someone provide some example strings >where an mb_starts_with_ci() would return true, while >str_starts_with_ci() would return false? That's easy: any character that has a lower- and uppercase form, and is no= t represented as one byte in the target encoding=2E For that matter, any su= ch character in the non-ASCII section of a single-byte encoding, since a no= n-mbstring case insensitive flag would presumably leave everything other th= an ASCII letters untouched=2E So, any non-Latin script, like Greek or Cyrillic; any accented characters,= unless you're lucky and they're represented by ASCII-letter plus combining= modifier; the Turkish "i", which if I remember rightly has three forms not= two; and so on=2E Regards, --=20 Rowan Collins [IMSoP]