PHP Class Webmozart\Console\Util\StringUtil

Since: 1.0
Author: Bernhard Schussek ([email protected])
Datei anzeigen Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
getLength ( $string, Webmozart\Console\Api\Formatter\Formatter $formatter = null )
getMaxLineLength ( $string, Webmozart\Console\Api\Formatter\Formatter $formatter = null )
getMaxWordLength ( $string, Webmozart\Console\Api\Formatter\Formatter $formatter = null )
parseBoolean ( $value, $nullable = true )
parseFloat ( $value, $nullable = true )
parseInteger ( $value, $nullable = true )
parseString ( $value, $nullable = true )

Private Methods

Method Description
__construct ( )

Method Details

getLength() public static method

public static getLength ( $string, Webmozart\Console\Api\Formatter\Formatter $formatter = null )
$formatter Webmozart\Console\Api\Formatter\Formatter

getMaxLineLength() public static method

public static getMaxLineLength ( $string, Webmozart\Console\Api\Formatter\Formatter $formatter = null )
$formatter Webmozart\Console\Api\Formatter\Formatter

getMaxWordLength() public static method

public static getMaxWordLength ( $string, Webmozart\Console\Api\Formatter\Formatter $formatter = null )
$formatter Webmozart\Console\Api\Formatter\Formatter

parseBoolean() public static method

public static parseBoolean ( $value, $nullable = true )

parseFloat() public static method

public static parseFloat ( $value, $nullable = true )

parseInteger() public static method

public static parseInteger ( $value, $nullable = true )

parseString() public static method

public static parseString ( $value, $nullable = true )