Req #36311 [Opn->Wfx]: mb_convert_case with MB_CASE_TITLE could be better
Edit report at https://bugs.php.net/bug.php?id=36311&edit=1
ID: 36311
Updated by: nikic@php.net
Reported by: alex at agileware dot net
Summary: mb_convert_case with MB_CASE_TITLE could be better
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: mbstring related
Operating System: linux
PHP Version: 4.4.2
Block user comment: N
Private report: N
New Comment:
As discussed in bug #65544, the behavior regarding "5th" is consistent with both the old
and the new title-casing algorithms specified by Unicode, so I'm going to mark this as
Won't Fix.
Previous Comments:
------------------------------------------------------------------------
[2017-07-28 12:09:38] nikic@php.net
Related To: Bug #65544
------------------------------------------------------------------------
[2016-01-07 08:49:20] daniel at 64studio dot com
The bug as originally reported was fixed in https://bugs.php.net/bug.php?id=46626
Capitalising the 'th' in 5th is a slightly different issue, and is still present in PHP
7.1.0-dev
I would suggest the title of this bug is updated.
------------------------------------------------------------------------
[2016-01-07 02:48:36] yohgaki@php.net
Related To: Bug #46607
------------------------------------------------------------------------
[2008-11-18 22:47:15] kriskra at gmail dot com
Description:
------------
mb_convert_case with MB_CASE_TITLE capitalises the 's' after an
number.
Reproduce code:
---------------
<?php
print mb_convert_case("IN THE 5TH CENTURY NOTING WAS CAPITALISED",
MB_CASE_TITLE);
?>
Expected result:
----------------
In The 5th Century Noting Was Capitalised
Actual result:
--------------
In The 5Th Century Noting Was Capitalised
------------------------------------------------------------------------
[2006-02-07 12:31:25] tony2001@php.net
Reclassified as feature request.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=36311
--
Edit this bug report at https://bugs.php.net/bug.php?id=36311&edit=1
Thread (5 messages)