PHP Class StringHelper, HamlPHP

Inheritance: extends CApplicationComponent
Afficher le fichier Open project: hamlphp/hamlphp Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public __construct ( $str )

__toString() public méthode

public __toString ( )

endsWith() public méthode

public endsWith ( string $str ) : boolean
$str string
Résultat boolean

startsWith() public méthode

public startsWith ( string $str ) : boolean
$str string
Résultat boolean

trimBalanced() public méthode

public trimBalanced ( unknown_type $openChar, unknown_type $closeChar ) : StringHelper
$openChar unknown_type
$closeChar unknown_type
Résultat StringHelper

underscorize() public méthode

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