From 0e3263b44d2762894588ff3e682579ec0cb77fa0 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Thu, 10 Mar 2011 16:37:35 +0000 Subject: Updated version number in User Guide html. --- user_guide/helpers/text_helper.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide/helpers/text_helper.html') diff --git a/user_guide/helpers/text_helper.html b/user_guide/helpers/text_helper.html index a7f0f2b18..7d646cb73 100644 --- a/user_guide/helpers/text_helper.html +++ b/user_guide/helpers/text_helper.html @@ -28,7 +28,7 @@
- +

CodeIgniter User Guide Version 2.0.0

CodeIgniter User Guide Version 2.0.1

-- cgit v1.2.3-24-g4f1b From 1f622294b92c095fd91e8ca44912d405c1605ded Mon Sep 17 00:00:00 2001 From: Pascal Kriete Date: Thu, 7 Apr 2011 12:06:51 -0400 Subject: Wow, I screwed that up, Reactor is going to 2.0.2 not 2.0.1 --- user_guide/helpers/text_helper.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_guide/helpers/text_helper.html') diff --git a/user_guide/helpers/text_helper.html b/user_guide/helpers/text_helper.html index 7d646cb73..f71d87840 100644 --- a/user_guide/helpers/text_helper.html +++ b/user_guide/helpers/text_helper.html @@ -28,7 +28,7 @@
- +

CodeIgniter User Guide Version 2.0.1

CodeIgniter User Guide Version 2.0.2

-- cgit v1.2.3-24-g4f1b From 114ab0988e20ac6be39ad363ff897a1a3b85e565 Mon Sep 17 00:00:00 2001 From: Razican Date: Mon, 25 Apr 2011 17:26:45 +0200 Subject: Fixed double-space typo. --- user_guide/helpers/text_helper.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'user_guide/helpers/text_helper.html') diff --git a/user_guide/helpers/text_helper.html b/user_guide/helpers/text_helper.html index f71d87840..3c83f3d42 100644 --- a/user_guide/helpers/text_helper.html +++ b/user_guide/helpers/text_helper.html @@ -71,22 +71,22 @@ Text Helper

word_limiter()

-

Truncates a string to the number of words specified. Example:

+

Truncates a string to the number of words specified. Example:

$string = "Here is a nice text string consisting of eleven words.";

$string = word_limiter($string, 4);

-// Returns: Here is a nice… +// Returns: Here is a nice…
-

The third parameter is an optional suffix added to the string. By default it adds an ellipsis.

+

The third parameter is an optional suffix added to the string. By default it adds an ellipsis.

character_limiter()

-

Truncates a string to the number of characters specified. It maintains the integrity +

Truncates a string to the number of characters specified. It maintains the integrity of words so the character count may be slightly more or less then what you specify. Example:

@@ -94,7 +94,7 @@ $string = "Here is a nice text string consisting of eleven words.";

$string = character_limiter($string, 20);

-// Returns: Here is a nice text string… +// Returns: Here is a nice text string…

The third parameter is an optional suffix added to the string, if undeclared this helper uses an ellipsis.

@@ -125,9 +125,9 @@ part it should correctly identify characters outside the normal range (like acce

word_censor()

-

Enables you to censor words within a text string. The first parameter will contain the original string. The -second will contain an array of words which you disallow. The third (optional) parameter can contain a replacement value -for the words. If not specified they are replaced with pound signs: ####. Example:

+

Enables you to censor words within a text string. The first parameter will contain the original string. The +second will contain an array of words which you disallow. The third (optional) parameter can contain a replacement value +for the words. If not specified they are replaced with pound signs: ####. Example:

$disallowed = array('darn', 'shucks', 'golly', 'phooey');
@@ -137,7 +137,7 @@ $string = word_censor($string, $disallowed, 'Beep!');

highlight_code()

-

Colorizes a string of code (PHP, HTML, etc.). Example:

+

Colorizes a string of code (PHP, HTML, etc.). Example:

$string = highlight_code($string); @@ -146,9 +146,9 @@ $string = word_censor($string, $disallowed, 'Beep!');

highlight_phrase()

-

Will highlight a phrase within a text string. The first parameter will contain the original string, the second will -contain the phrase you wish to highlight. The third and fourth parameters will contain the opening/closing HTML tags -you would like the phrase wrapped in. Example:

+

Will highlight a phrase within a text string. The first parameter will contain the original string, the second will +contain the phrase you wish to highlight. The third and fourth parameters will contain the opening/closing HTML tags +you would like the phrase wrapped in. Example:

$string = "Here is a nice text string about nothing in particular.";
@@ -164,7 +164,7 @@ $string = highlight_phrase($string, "nice text", '<span style="color:#990000"

word_wrap()

-

Wraps text at the specified character count while maintaining complete words. Example:

+

Wraps text at the specified character count while maintaining complete words. Example:

$string = "Here is a simple string of text that will help us demonstrate this function.";

@@ -180,8 +180,8 @@ function

ellipsize()

This function will strip tags from a string, split it at a defined maximum length, and insert an ellipsis.

-

The first parameter is the string to ellipsize, the second is the number of characters in the final string. The third parameter is where in the string the ellipsis should appear from 0 - 1, left to right. For example. a value of 1 will place the ellipsis at the right of the string, .5 in the middle, and 0 at the left.

-

An optional forth parameter is the kind of ellipsis. By default, &hellip; will be inserted.

+

The first parameter is the string to ellipsize, the second is the number of characters in the final string. The third parameter is where in the string the ellipsis should appear from 0 - 1, left to right. For example. a value of 1 will place the ellipsis at the right of the string, .5 in the middle, and 0 at the left.

+

An optional forth parameter is the kind of ellipsis. By default, &hellip; will be inserted.

$str = 'this_string_is_entirely_too_long_and_might_break_my_design.jpg';

-- cgit v1.2.3-24-g4f1b