From 0c73f2b91c11ed64fb4bda978541e8a8f85f6558 Mon Sep 17 00:00:00 2001 From: Geert Date: Tue, 28 Aug 2007 20:47:54 +0000 Subject: [PATCH] text::limit_words(), text::limit_chars(), text::soft_limit_chars() UTF-8 compatible --- system/helpers/file.php | 6 +-- system/helpers/text.php | 82 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 system/helpers/text.php diff --git a/system/helpers/file.php b/system/helpers/file.php index 4a1e344a..8d532035 100644 --- a/system/helpers/file.php +++ b/system/helpers/file.php @@ -44,7 +44,7 @@ public static function split($filename, $output_dir = FALSE, $piece_size = 10) fclose($input_file); // Returns the number of pieces that were created - return ($piece-1); + return ($piece - 1); } public static function join($filename, $output = FALSE) @@ -78,7 +78,7 @@ public static function join($filename, $output = FALSE) fclose($output_file); // Return the number of pieces joined - return ($piece-1); + return ($piece - 1); } -} // End file Class \ No newline at end of file +} // End file class \ No newline at end of file diff --git a/system/helpers/text.php b/system/helpers/text.php new file mode 100644 index 00000000..6482afc9 --- /dev/null +++ b/system/helpers/text.php @@ -0,0 +1,82 @@ +