From a6c179d56973e382205c8583568d635c37f814c8 Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Tue, 27 Aug 2019 13:05:48 -0600 Subject: Updates smarty to v3.1.33. --- lib/smarty-3.1.33/plugins/modifier.spacify.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lib/smarty-3.1.33/plugins/modifier.spacify.php (limited to 'lib/smarty-3.1.33/plugins/modifier.spacify.php') diff --git a/lib/smarty-3.1.33/plugins/modifier.spacify.php b/lib/smarty-3.1.33/plugins/modifier.spacify.php new file mode 100644 index 0000000..98efd4b --- /dev/null +++ b/lib/smarty-3.1.33/plugins/modifier.spacify.php @@ -0,0 +1,26 @@ + + * + * @param string $string input string + * @param string $spacify_char string to insert between characters. + * + * @return string + */ +function smarty_modifier_spacify($string, $spacify_char = ' ') +{ + // well… what about charsets besides latin and UTF-8? + return implode($spacify_char, preg_split('//' . Smarty::$_UTF8_MODIFIER, $string, -1, PREG_SPLIT_NO_EMPTY)); +} -- cgit v1.2.3