chain/string

Library of _Chain_ links for string processing.

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/chain/string

dev-master 2015-02-23 17:32 UTC

This package is not auto-updated.

Last update: 2025-10-25 22:29:50 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.