From a9a4ce461fff4cb8c98f53231588a14980219ed2 Mon Sep 17 00:00:00 2001 From: vlakoff Date: Tue, 3 Feb 2015 06:29:04 +0100 Subject: [PATCH] Clean up some commas in README --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ab7c837..e86e6e7 100644 --- a/README.md +++ b/README.md @@ -314,7 +314,7 @@ S::countSubstr('Ο συγγραφέας είπε', 'α', 'UTF-8'); // 2 #### create -S::create(mixed $str, [, $encoding ]) +S::create(mixed $str [, $encoding ]) Creates a Stringy object and assigns both str and encoding properties the supplied values. $str is cast to a string prior to assignment, and if @@ -734,7 +734,7 @@ S::replace('fòô bàř fòô bàř', 'fòô ', '', 'UTF-8'); // 'bàř bàř' $stringy->reverse() -S::reverse(string $str, [, string $encoding ]) +S::reverse(string $str [, string $encoding ]) Returns a reversed string. A multibyte version of strrev(). @@ -745,9 +745,9 @@ S::reverse('fòô bàř', 'UTF-8'); // 'řàb ôòf' #### safeTruncate -$stringy->safeTruncate(int $length, [, string $substring = '' ]) +$stringy->safeTruncate(int $length [, string $substring = '' ]) -S::safeTruncate(string $str, int $length, [, string $substring = '' [, string $encoding ]]) +S::safeTruncate(string $str, int $length [, string $substring = '' [, string $encoding ]]) Truncates the string to a given length, while ensuring that it does not split words. If $substring is provided, and truncating occurs, the @@ -909,7 +909,7 @@ S::toLowerCase('FÒÔ BÀŘ', 'UTF-8'); // 'fòô bàř' $stringy->toSpaces([ tabLength = 4 ]) -S::toSpaces(string $str, [, int $tabLength = 4 ]) +S::toSpaces(string $str [, int $tabLength = 4 ]) Converts each tab in the string to some number of spaces, as defined by $tabLength. By default, each tab is converted to 4 consecutive spaces. @@ -923,7 +923,7 @@ S::toSpaces(' String speech = "Hi"'); // ' String speech = "Hi"' $stringy->toTabs([ tabLength = 4 ]) -S::toTabs(string $str, [, int $tabLength = 4 ]) +S::toTabs(string $str [, int $tabLength = 4 ]) Converts each occurrence of some consecutive number of spaces, as defined by $tabLength, to a tab. By default, each 4 consecutive spaces are @@ -976,9 +976,9 @@ S::trim(' fòô bàř '); // 'fòô bàř' #### truncate -$stringy->truncate(int $length, [, string $substring = '' ]) +$stringy->truncate(int $length [, string $substring = '' ]) -S::truncate(string $str, int $length, [, string $substring = '' [, string $encoding ]]) +S::truncate(string $str, int $length [, string $substring = '' [, string $encoding ]]) Truncates the string to a given length. If $substring is provided, and truncating occurs, the string is further truncated so that the substring