4.0.0
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 ofTwine\Strobjects
Other
- Major improvements to multi-byte string support
- Allow defining a
Twine\Strobject's encoding- Do this on individual objects via the second parameter when newing up a
Twine\Strobject - Or set a global default by calling
Twine\Config\Str::setEncoding()before newing up an object
- Do this on individual objects via the second parameter when newing up a
Detailed changelog: 3.0.0...4.0.0