Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 25... Zeile 25...
25
        // expression taken from http://de.php.net/manual/en/function.str-word-count.php#85592
25
        // expression taken from http://de.php.net/manual/en/function.str-word-count.php#85592
26
        return 'preg_match_all(\'/\p{L}[\p{L}\p{Mn}\p{Pd}\\\'\x{2019}]*/' . Smarty::$_UTF8_MODIFIER . '\', ' .
26
        return 'preg_match_all(\'/\p{L}[\p{L}\p{Mn}\p{Pd}\\\'\x{2019}]*/' . Smarty::$_UTF8_MODIFIER . '\', ' .
27
               $params[ 0 ] . ', $tmp)';
27
               $params[ 0 ] . ', $tmp)';
28
    }
28
    }
29
    // no MBString fallback
29
    // no MBString fallback
30
    return 'str_word_count(' . $params[ 0 ] . ')';
30
    return 'str_word_count((string) ' . $params[ 0 ] . ')';
31
}
31
}