PHP Class Expose\Converter\ConvertJS

Datei anzeigen Open project: enygma/expose

Public Methods

Method Description
convertFromJSCharcode ( string $value ) : string Checks for common charcode pattern and decodes them
convertFromJSUnicode ( string $value ) : string This method converts JS unicode code points to regular characters
convertJSRegexModifiers ( string $value ) : string Eliminate JS regex modifiers

Method Details

convertFromJSCharcode() public method

Checks for common charcode pattern and decodes them
public convertFromJSCharcode ( string $value ) : string
$value string the value to convert
return string

convertFromJSUnicode() public method

This method converts JS unicode code points to regular characters
public convertFromJSUnicode ( string $value ) : string
$value string the value to convert
return string

convertJSRegexModifiers() public method

Eliminate JS regex modifiers
public convertJSRegexModifiers ( string $value ) : string
$value string the value to convert
return string