src/Contao/View/Contao2BackendView/Subscriber/GetGroupHeaderSubscriber.php
private function formatByCharGrouping($value, $groupingLength)
    {
        if ('' === $value) {
            return '-';
        }

        return \ucfirst(Utf8::substr($value, 0, $groupingLength ?: null));
    }
private function formatByCharGrouping($value, $groupingLength)
    {
        if ('' === $value) {
            return '-';
        }

        return \ucfirst(Utf8::substr($value, 0, $groupingLength ?: null));
    }
private function formatByCharGrouping ( $ value , $ groupingLength ) { if ( '' === $ value ) { return '-' ; } return \ ucfirst ( Utf8 :: substr ( $ value , 0 , $ groupingLength ? : null ) ) ; }
Format a value for char grouping.

@param string $value          The value.
@param int    $groupingLength The group length.

@return string
Format a value for char grouping .