+++ /dev/null
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-\r
-/**\r
- * Smarty count_characters modifier plugin\r
- *\r
- * Type: modifier<br>\r
- * Name: count_characteres<br>\r
- * Purpose: count the number of characters in a text\r
- * @link http://smarty.php.net/manual/en/language.modifier.count.characters.php\r
- * count_characters (Smarty online manual)\r
- * @param string\r
- * @param boolean include whitespace in the character count\r
- * @return integer\r
- */\r
-function smarty_modifier_count_characters($string, $include_spaces = false)\r
-{\r
- if ($include_spaces)\r
- return(strlen($string));\r
-\r
- return preg_match_all("/[^\s]/",$string, $match);\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r