CoreFiles by mySites.guru
TruncateMode.php42 lines, 903 bytes, from Joomla_6.2.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 6.2.0-alpha1
md5
f4bdd6385f7ed3df3102278eb5e68ae6
sha1
ee98ede70d7653e56298b4f4948ef2dcdd719110
sha256
dd9c2fff845bdd6dba220536f78cfe1f320dcf458cecaa1ad12d0e222866f370
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\String;

enum TruncateMode
{
    /**
     * Will cut exactly at given length.
     *
     * Length: 14
     * Source: Lorem ipsum dolor sit amet
     * Output: Lorem ipsum do
     */
    case Char;

    /**
     * Returns the string up to the last complete word containing the specified length.
     *
     * Length: 14
     * Source: Lorem ipsum dolor sit amet
     * Output: Lorem ipsum
     */
    case WordBefore;

    /**
     * Returns the string up to the complete word after or at the given length.
     *
     * Length: 14
     * Source: Lorem ipsum dolor sit amet
     * Output: Lorem ipsum dolor
     */
    case WordAfter;
}

The same content is in 47 releases, Joomla 6.0.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.