Req #46607 [Csd]: mb_convert_case with MB_CASE_TITLE should be improved

From: Date: Thu, 07 Jan 2016 02:51:55 +0000
Subject: Req #46607 [Csd]: mb_convert_case with MB_CASE_TITLE should be improved
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198468@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=46607&edit=1 ID: 46607 Updated by: yohgaki@php.net Reported by: kriskra at gmail dot com Summary: mb_convert_case with MB_CASE_TITLE should be improved Status: Closed Type: Feature/Change Request Package: mbstring related Operating System: * PHP Version: 5.2.6 Assigned To: yohgaki Block user comment: N Private report: N New Comment: https://bugs.php.net/bug.php?id=71298 Previous Comments: ------------------------------------------------------------------------ [2016-01-07 02:48:36] yohgaki@php.net Dup of Bug #36311 Closing this one. https://3v4l.org/P0RGT &rsquo; should be handled. I'll write new bug report. ------------------------------------------------------------------------ [2016-01-04 17:00:43] daniel at 64studio dot com This appears to be a duplicate of https://bugs.php.net/bug.php?id=36311 It was already fixed for straight apostrophe/quotes (HTML &#39;) in https://bugs.php.net/bug.php?id=46626 but not for the curled apostrophe/quote (HTML &rsquo;) when using PHP 7.1.0-dev from git. Reproduce code: --------------- <?php echo mb_convert_case("People's issues versus people’s issues", MB_CASE_TITLE); ?> Expected result: ---------------- People's Issues Versus People’s Issues Actual result: -------------- People's Issues Versus People’S Issues ------------------------------------------------------------------------ [2008-11-18 22:51:40] kriskra at gmail dot com Description: ------------ mb_convert_case with MB_CASE_TITLE capitalises the 's' after an apostrophe. mb_convert_case with MB_CASE_TITLE capitalises the 't' after a number. Reproduce code: --------------- <?php print mb_convert_case("THE APOSTROPHE'S 'S' SHOULD NOT BE CAPITALISED", MB_CASE_TITLE); print mb_convert_case("IN THE 5TH CENTURY NOTING WAS CAPITALISED", MB_CASE_TITLE); ?> Expected result: ---------------- The Apostrophe's 'S' Should Not Be Capitalised In The 5th Century Noting Was Capitalised Actual result: -------------- The Apostrophe'S 'S' Should Not Be Capitalised In The 5Th Century Noting Was Capitalised ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=46607&edit=1

« previous php.bugs (#198468) next »