Re: Deprecate and remove case-insensitive constants?
| From: | Tony Marston | Date: | Fri, 15 Sep 2017 14:25:19 +0000 |
| Subject: | Re: Deprecate and remove case-insensitive constants? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100626@lists.php.net to get a copy of this message | ||
"Alain Williams" wrote in message news:20170915093457.GI8096@phcomp.co.uk...
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.I have read that article, and while it says that case switching may not be easy it does not say that it is impossible. While most case mappings work on a one-to-one basis it is possible to specify any one-to-any mappings as well as any additional mappings used in case folding for any exceptions. -- Tony MarstonThen 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