- Add
TruncateMode
enum to handle more truncate methods - Add the
AbstractString::kebab()
method
- Add
localeLower()
,localeUpper()
,localeTitle()
methods toAbstractUnicodeString
- Add support for emoji in
AsciiSlugger
- Add
trimSuffix()
andtrimPrefix()
methods
- Made
AsciiSlugger
fallback to parent locale's symbolsMap
- added a
FrenchInflector
class
- added the
AbstractString::reverse()
method - made
AbstractString::width()
follow POSIX.1-2001 - added
LazyString
which provides memoizing stringable objects - The component is not marked as
@experimental
anymore - added the
s()
helper method to get either anUnicodeString
orByteString
instance, depending of the input string UTF-8 compliancy - added
$cut
parameter toSymfony\Component\String\AbstractString::truncate()
- added
AbstractString::containsAny()
- allow passing a string of custom characters to
ByteString::fromRandom()
- added the component as experimental