PHP Class Jade\Compiler\CommonUtils

Common static methods for compiler and lexer classes.
Show file Open project: kylekatarnls/jade-php Class Usage Examples

Public Methods

Method Description
addDollarIfNeeded ( string $call ) : string
escapedEnd ( string $quotedString ) : boolean Return true if the ending quote of the string is escaped.
getGetter ( object | array $anything, $key ) : string Return true if the ending quote of the string is escaped.

Method Details

addDollarIfNeeded() public static method

public static addDollarIfNeeded ( string $call ) : string
$call string
return string

escapedEnd() public static method

Return true if the ending quote of the string is escaped.
public static escapedEnd ( string $quotedString ) : boolean
$quotedString string
return boolean

getGetter() public static method

Return true if the ending quote of the string is escaped.
public static getGetter ( object | array $anything, $key ) : string
$anything object | array object or array (PHP >= 7) that contains a callable
return string