PHP Class StringHelper, HamlPHP

Inheritance: extends CApplicationComponent
Exibir arquivo Open project: hamlphp/hamlphp Class Usage Examples

Public Methods

Method Description
__construct ( $str )
__toString ( )
endsWith ( string $str ) : boolean
startsWith ( string $str ) : boolean
trimBalanced ( unknown_type $openChar, unknown_type $closeChar ) : StringHelper
underscorize ( ) Returns the current CamelCased string as an underscored_case string

Method Details

__construct() public method

public __construct ( $str )

__toString() public method

public __toString ( )

endsWith() public method

public endsWith ( string $str ) : boolean
$str string
return boolean

startsWith() public method

public startsWith ( string $str ) : boolean
$str string
return boolean

trimBalanced() public method

public trimBalanced ( unknown_type $openChar, unknown_type $closeChar ) : StringHelper
$openChar unknown_type
$closeChar unknown_type
return StringHelper

underscorize() public method

Returns the current CamelCased string as an underscored_case string
public underscorize ( )