Skip to content

4.0.0

Compare
Choose a tag to compare
@PHLAK PHLAK released this 21 Nov 21:57
· 91 commits to master since this release
f3f6b29

Added

  • Added Str::chracters() method
  • Added Str::chunk() method
  • Added Str::encoding() method
  • Added Str::explode() method
  • Added Str::in() method
  • Added Str::isEmpty() method
  • Added Str::isNotEmpty() method
  • Added Str::nth() method
  • Added Str::split() method
  • Added Str::to() method
  • Added Typable methods
    • Str::isAlphabetic()
    • Str::isNumeric()
    • Str::isAlphanumeric()
    • Str::isLowercase()
    • Str::isUppercase()
    • Str::isWhitespace()
    • Str::isPunctuation()
    • Str::isPrintable()

Changed

  • Str::words() will now return an array of Twine\Str objects

Other

  • Major improvements to multi-byte string support
  • Allow defining a Twine\Str object's encoding
    • Do this on individual objects via the second parameter when newing up a Twine\Str object
    • Or set a global default by calling Twine\Config\Str::setEncoding() before newing up an object

Detailed changelog: 3.0.0...4.0.0