]> git.mxchange.org Git - friendica.git/blobdiff - library/Smarty/libs/plugins/modifiercompiler.count_sentences.php
reverting tinymce changes, updating smarty to 3.1.19
[friendica.git] / library / Smarty / libs / plugins / modifiercompiler.count_sentences.php
index 2f517be96f185f2359450f4f5e9c0f47bf4f60cf..f1ec560078c1e0200066db0b2224c1e783762bff 100644 (file)
@@ -1,28 +1,27 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- *\r
- * @package Smarty\r
- * @subpackage PluginsModifierCompiler\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
- *\r
- * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php\r
- *          count_sentences (Smarty online manual)\r
- * @author Uwe Tews\r
- * @param array $params parameters\r
- * @return string with compiled code\r
- */\r
-function smarty_modifiercompiler_count_sentences($params, $compiler)\r
-{\r
-    // find periods, question marks, exclamation marks with a word before but not after.\r
-    return 'preg_match_all("#\w[\.\?\!](\W|$)#S' . Smarty::$_UTF8_MODIFIER . '", ' . $params[0] . ', $tmp)';\r
-}\r
-\r
-?>
\ No newline at end of file
+<?php
+/**
+ * Smarty plugin
+ *
+ * @package    Smarty
+ * @subpackage PluginsModifierCompiler
+ */
+
+/**
+ * Smarty count_sentences modifier plugin
+ * Type:     modifier<br>
+ * Name:     count_sentences
+ * Purpose:  count the number of sentences in a text
+ *
+ * @link    http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php
+ *          count_sentences (Smarty online manual)
+ * @author  Uwe Tews
+ *
+ * @param array $params parameters
+ *
+ * @return string with compiled code
+ */
+function smarty_modifiercompiler_count_sentences($params)
+{
+    // find periods, question marks, exclamation marks with a word before but not after.
+    return 'preg_match_all("#\w[\.\?\!](\W|$)#S' . Smarty::$_UTF8_MODIFIER . '", ' . $params[0] . ', $tmp)';
+}