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\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
- Do this on individual objects via the second parameter when newing up a
Detailed changelog: 3.0.0...4.0.0