Hi Daniele,

I think many of these functions might already be part of popular userland
libraries like Symfony String component
https://symfony.com/doc/current/components/string.html#methods-added-by-bytestring

It might be worthwhile to add missing functions to such userland libraries.

Imho, PHP stdlib has enough string functions for allowing developers to
write polyfills in userland code fairly easily.


Regards,
Faizan


On Sat, 25 Sep 2021, 10:50 pm Daniele B via internals, <
internals@lists.php.net> wrote:

>
> Hi Kamil,
> Thx a lot. I try to build a list specifying when it is matter of Classic
> ASP.This mailing list doesn't support a lot of code per post..
>
> String Manipulation==================
> function is_contraction(?string $w) {}
> function is_givenName(?string $w) {}
> function is_ucfirst(?string $s) {}
>
>
>
> function is_vowel(string $letter) {}
> // Classic ASP
> function left(?string $string, int $length) {}
> function leftWord(?string $phrase) {}
> function rightWord(?string $phrase) {}
>
>
>
> // Classic ASPfunction right(?string $string, int $length) {}
> // Classic ASPfunction space();
> function str_case_normalize(?string $text) {}
>
>
>
> function str_place(string $string, string $needle) {}
> function str_phrase_reverse(string $string) {}
>
>
>
> function str_word_unique(string $phrase, bool $removeRightMost = true) {}
> function rtrim_word(string $phrase, array $aWords) {}
> function trim_word(string $phrase, array $aWords) {}
>
>
>
>
> etc. etc.
> Next call we talk about date and time..
>
> Daniele Boninihttp://github.com/par7133
>
>
>
>
>
>
>
> -------- Original message --------
> From: Kamil Tekiela <tekiela...@gmail.com>
> Date: 9/25/21  16:49  (GMT+01:00)
> To: daniele bonini <my2...@aol.com>
> Cc: internals@lists.php.net
> Subject: Re: [PHP-DEV] RFC Concept: "Import" of simplied string
> manipulation and other instructions from ASP Classic
>
>
> Hi Daniele,
> Thanks for reaching out to internals. I am curious about your proposal.
> Could you please provide some examples of what you think was great in
> Classic ASP that you would like to see implemented in PHP? If you have
> implemented polyfills in PHP for them, could you share them with us?
> Regards,Kamil
>
>

Reply via email to