chain / string
Library of _Chain_ links for string processing.
dev-master
2015-02-23 17:32 UTC
Requires
- php: >=5.3.0
- chain/core: dev-master
Requires (Dev)
- phpunit/phpunit: 4.4.4
This package is not auto-updated.
Last update: 2024-05-25 14:52:53 UTC
README
#_String_ ####Library of _Chain_ links for string processing.
-
_Length_ Get the length of a string.
-
_Lowercase_ Make a string lowercase.
-
_ShannonEntropy_ Estimate the average minimum number of bits needed to encode a string of symbols based on the alphabet size and the frequency of the symbols.
-
_Uppercase_ Make a string uppercase.
-
_Whitespace_ Reduce substrings containing more than one whitespace to a single whitespace. By default, leading and trailing whitespaces are also removed.
Whitespaces include tab, newline, and linebreak characters.