andrei Thu Aug 18 18:37:23 2005 EDT
Modified files:
/php-src/ext/standard string.c
Log:
Use u_totitle() instead of u_toupper() in ucwords().
http://cvs.php.net/diff.php/php-src/ext/standard/string.c?r1=1.465&r2=1.466&ty=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.465 php-src/ext/standard/string.c:1.466
--- php-src/ext/standard/string.c:1.465 Thu Aug 18 01:53:46 2005
+++ php-src/ext/standard/string.c Thu Aug 18 18:37:22 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.465 2005/08/18 05:53:46 rolland Exp $ */
+/* $Id: string.c,v 1.466 2005/08/18 22:37:22 andrei Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -2962,7 +2962,7 @@
codepts[0] = u_toupper(codepts[0]);
for (i = 1; i < len ; i++) {
if (u_isWhitespace(codepts[i-1]) == TRUE) {
- codepts[i] = u_toupper(codepts[i]);
+ codepts[i] = u_totitle(codepts[i]);
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php