#36311 [Opn]: mb_convert_case with MB_CASE_TITLE could be better

From: Date: Tue, 07 Feb 2006 11:31:26 +0000
Subject: #36311 [Opn]: mb_convert_case with MB_CASE_TITLE could be better
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93006@lists.php.net to get a copy of this message
 ID:               36311
 Updated by:       tony2001@php.net
 Reported By:      alex at agileware dot net
 Status:           Open
-Bug Type:         mbstring related
+Bug Type:         Feature/Change Request
 Operating System: linux
 PHP Version:      4.4.2
 New Comment:

Reclassified as feature request.


Previous Comments:
------------------------------------------------------------------------

[2006-02-07 02:47:54] alex at agileware dot net

Description:
------------
mb_convert_case with MB_CASE_TITLE capitalises the 's' after an
apostrophe. It could also optionally accept an array of words not to
change, such as 'a', 'at', 'in', 'of', etc.

Reproduce code:
---------------
<?php
print mb_convert_case("THE APOSTROPHE'S 'S' SHOULD NOT BE CAPITALISED",
MB_CASE_TITLE);
?>

Expected result:
----------------
The Apostrophe's 'S' Should Not Be Capitalised

Actual result:
--------------
The Apostrophe'S 'S' Should Not Be Capitalised


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36311&edit=1


Thread (5 messages)

« previous php.bugs (#93006) next »