ID:               36311
 Comment by:       kriskra at gmail dot com
 Reported By:      alex at agileware dot net
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: linux
 PHP Version:      4.4.2
 New Comment:

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


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

[2006-02-07 12:31:25] [EMAIL PROTECTED]

Reclassified as feature request.

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

[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

Reply via email to