fabpot/Twig-extensions — pull request #38 by EvanK (2011-12-01 20:44:24+00:00)
Title: Added substr filter to Text extension

This filter would be analogous to PHP's built in `substr` function. It requires a starting position, while the length parameter would either be ignored (if mb is not available) or default to the string's length (which is what the built in substr does anyway).