mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-13 16:53:59 +02:00
Clean up some commas in README
This commit is contained in:
16
README.md
16
README.md
@@ -314,7 +314,7 @@ S::countSubstr('Ο συγγραφέας είπε', 'α', 'UTF-8'); // 2
|
|||||||
|
|
||||||
#### create
|
#### create
|
||||||
|
|
||||||
S::create(mixed $str, [, $encoding ])
|
S::create(mixed $str [, $encoding ])
|
||||||
|
|
||||||
Creates a Stringy object and assigns both str and encoding properties
|
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
|
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()
|
$stringy->reverse()
|
||||||
|
|
||||||
S::reverse(string $str, [, string $encoding ])
|
S::reverse(string $str [, string $encoding ])
|
||||||
|
|
||||||
Returns a reversed string. A multibyte version of strrev().
|
Returns a reversed string. A multibyte version of strrev().
|
||||||
|
|
||||||
@@ -745,9 +745,9 @@ S::reverse('fòô bàř', 'UTF-8'); // 'řàb ôòf'
|
|||||||
|
|
||||||
#### safeTruncate
|
#### 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
|
Truncates the string to a given length, while ensuring that it does not
|
||||||
split words. If $substring is provided, and truncating occurs, the
|
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 ])
|
$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
|
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.
|
$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 ])
|
$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
|
Converts each occurrence of some consecutive number of spaces, as defined
|
||||||
by $tabLength, to a tab. By default, each 4 consecutive spaces are
|
by $tabLength, to a tab. By default, each 4 consecutive spaces are
|
||||||
@@ -976,9 +976,9 @@ S::trim(' fòô bàř '); // 'fòô bàř'
|
|||||||
|
|
||||||
#### truncate
|
#### 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
|
Truncates the string to a given length. If $substring is provided, and
|
||||||
truncating occurs, the string is further truncated so that the substring
|
truncating occurs, the string is further truncated so that the substring
|
||||||
|
Reference in New Issue
Block a user