Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119152 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89219 invoked from network); 15 Dec 2022 16:40:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Dec 2022 16:40:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B3820180544 for ; Thu, 15 Dec 2022 08:40:12 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 15 Dec 2022 08:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1671122410; bh=HRxFNZMl12SCB6hyp/rYUl9epPlw/QYBWIE3NkoXaH4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=bLLJAYi1UbbPLu3iR8jLWKSleFtzsh4ImFGZXPk38eXsdXnJawz3AVp2hIxA86Wau bqUIXBRSiE4ZwpICYxZLDXbgsrPhUAnG42bIILLDsZIknXdKwLszrMzNE3g8YsJNP4 jF+Nv3zWtiscOT8sFmYk5FyJLepQuz+HeTkFPj8qEELxlkYKstMkGADxUO4mg4A1sg dwZa85J1IYM7NYvjgpiJkhR/C/uPgxr0nu4wciTG3ejqesUvfHXzgOPpz/i4a+u5fH yoMecy9Nqvljkr8vURKwMuZdP31uBcf/jMEFl5m5VB8fDmLKeNf1TkbHPJpQdSdRn2 2gElKJjcMfSJA== Message-ID: Date: Thu, 15 Dec 2022 17:40:09 +0100 MIME-Version: 1.0 Content-Language: en-US To: Derick Rethans , PHP Developers Mailing List References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] Unicode Text Processing From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 12/15/22 16:34, Derick Rethans wrote: > You can find it at: > https://wiki.php.net/rfc/unicode_text_processing > > I'm looking forwards to hearing your opinions, additions, and > suggestions — the RFC specifically asks for these in places. Some first remarks: ---------- replaceText(): In the replaceText() section the description refers to a non-existent parameters '$maxReplacements' and '$collator'. Also the second paragraph in that section looks like a word is missing there. ---------- getPositionOfFirstOccurrence(): I agree this is too long. How about: - findOffset() - findOffsetLast() And for returnFromFirstOccurence(): - startingWith() - startingWithLast() ---------- firstToTitle(): I don't see how this differs from toTitle() and/or firstToUpper(). An example would likely be helpful. ---------- wordsToTitle(): Likewise. ---------- The return of many methods is not explicitly listed. I'd put it everywhere to make it 100% clear that all those functions return 'Text'. Best regards Tim Düsterhus