]> granicus.if.org Git - php/commitdiff
Should use word break iteration instead of title, as title one has been
authorAndrei Zmievski <andrei@php.net>
Thu, 2 Mar 2006 20:40:45 +0000 (20:40 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 2 Mar 2006 20:40:45 +0000 (20:40 +0000)
deprecated since Unicode 3.2>

ext/unicode/locale.c

index c85bd1406d58a798a84b9a2b5caf86824a0ea134..967a64e3632002be7af145c0f8c15e2d0dcb42e9 100644 (file)
@@ -99,7 +99,7 @@ PHPAPI UChar* php_u_strtotitle(UChar **s, int32_t *len, const char* locale)
        UBreakIterator *brkiter;
        
        dest_len = *len;
-       brkiter = ubrk_open(UBRK_TITLE, locale, *s, *len, &status);
+       brkiter = ubrk_open(UBRK_WORD, locale, *s, *len, &status);
        while (1) {
                status = U_ZERO_ERROR;
                dest = eurealloc(dest, dest_len+1);