removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / modifier.count_sentences.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/modifier.count_sentences.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/plugins/modifier.count_sentences.php
deleted file mode 100644 (file)
index 2f3ba65..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-\r
-/**\r
- * Smarty count_sentences modifier plugin\r
- *\r
- * Type:     modifier<br>\r
- * Name:     count_sentences\r
- * Purpose:  count the number of sentences in a text\r
- * @link http://smarty.php.net/manual/en/language.modifier.count.paragraphs.php\r
- *          count_sentences (Smarty online manual)\r
- * @param string\r
- * @return integer\r
- */\r
-function smarty_modifier_count_sentences($string)\r
-{\r
-    // find periods with a word before but not after.\r
-    return preg_match_all('/[^\s]\.(?!\w)/', $string, $match);\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r