X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2FSmarty-2.6.10%2Flibs%2Fplugins%2Fmodifier.count_words.php;fp=wwwroot%2Fsmarty%2FSmarty-2.6.10%2Flibs%2Fplugins%2Fmodifier.count_words.php;h=0000000000000000000000000000000000000000;hb=e034221efbc7970ec58be22d7517fd3c503dc903;hp=42c8a741c5cdd6754dc3f18b4e83f56b0e990408;hpb=c6f21b69e8210bdd0e80cf87f1c2f06dfc848a75;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.count_words.php b/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.count_words.php deleted file mode 100644 index 42c8a74..0000000 --- a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.count_words.php +++ /dev/null @@ -1,32 +0,0 @@ - - * Name: count_words
- * Purpose: count the number of words in a text - * @link http://smarty.php.net/manual/en/language.modifier.count.words.php - * count_words (Smarty online manual) - * @param string - * @return integer - */ -function smarty_modifier_count_words($string) -{ - // split text by ' ',\r,\n,\f,\t - $split_array = preg_split('/\s+/',$string); - // count matches that contain alphanumerics - $word_count = preg_grep('/[a-zA-Z0-9\\x80-\\xff]/', $split_array); - - return count($word_count); -} - -/* vim: set expandtab: */ - -?>