]> granicus.if.org Git - php/commitdiff
Use u_totitle() instead of u_toupper() in ucwords().
authorAndrei Zmievski <andrei@php.net>
Thu, 18 Aug 2005 22:37:22 +0000 (22:37 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 18 Aug 2005 22:37:22 +0000 (22:37 +0000)
ext/standard/string.c

index eb707f8c18c259bc70af97ec3fa091be7f0e9d3c..7a98545c34f672a7acfb666eabc99ebd14aa907e 100644 (file)
@@ -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]);
                }
        }