From 0b036a8fdc799a4ef1f10019b2e56c7206c891de Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Thu, 18 Aug 2005 22:37:22 +0000 Subject: [PATCH] Use u_totitle() instead of u_toupper() in ucwords(). --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index eb707f8c18..7a98545c34 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2962,7 +2962,7 @@ static void php_u_ucwords(zval *ustr, zval *retval) 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]); } } -- 2.50.1