Re: RFC Concept: "Import" of simplied strin g manipulation and other instructions from ASP Classic
| From: | Rowan Tommins | Date: | Sat, 25 Sep 2021 19:51:55 +0000 |
| Subject: | Re: RFC Concept: "Import" of simplied strin g manipulation and other instructions from ASP Classic | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116165@lists.php.net to get a copy of this message | ||
Hi Daniele,
On 25 September 2021 18:18:59 BST, Daniele B via internals <internals@lists.php.net> wrote:
>
>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..
Rather than focusing on how they relate to Classic ASP, a better approach might be to look at how
proposed functions would fit with other things in PHP, and how widely used they would be. There are
lots of languages we can borrow ideas from, but the goal should be to pick the best bits and adapt
them as needed.
Some of these are quite easy to do in PHP - for instance, left() and right() are simple with
substr(); and str_place() sounds exactly like strpos() from the name.
It looks like there is a family of functions related to "words" (presumably splitting on
space?); perhaps there is a core set that would make the others easier?
Finally, remember that a lot of people reading this have never used Classic ASP, so don't know
what these functions do. Some are easy to guess, but others less so, such as is_contraction(),
is_givenName(), space(), and str_case_normalize()
Regards,
--
Rowan Tommins
[IMSoP]