Re: Deprecate and remove case-insensitive constants?
| From: | Alain Williams | Date: | Fri, 15 Sep 2017 09:34:57 +0000 |
| Subject: | Re: Deprecate and remove case-insensitive constants? | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100616@lists.php.net to get a copy of this message | ||
On Fri, Sep 15, 2017 at 09:51:53AM +0100, Tony Marston wrote:
> >Iike how you map lower -> upper depends on how you encode characters.
>
> Then use a single UNICODE character set where every character has
> both an upper and lower case representation. Problem solved.
Not possible - see below.
> I don't give two hoots what javascript does.
Many PHP programmers also write Javascript. Avoiding gratuitous inconsistencies
will help them.
> UNICODE was supposedly invented to deal with all these problems so
> why doesn't it? Why is it not possible to define an uppercase and
> lowercase variant of the same character?
I don't think that you understand Unicode. Case mapping is not as simple as you
seem to think - even in English. For a start there are 3 cases: lower, upper &
title. It then gets more complicated. I suggest that you read:
http://unicode.org/faq/casemap_charprop.html
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>