JSMin::__construct |
( |
|
$input = "" | ) |
|
JSMin::action |
( |
|
$command | ) |
|
|
protected |
ACTION_KEEP_A = Output A. Copy B to A. Get the next B. ACTION_DELETE_A = Copy B to A. Get the next B. ACTION_DELETE_A_B = Get the next B.
- Parameters
-
- Exceptions
-
JSMin_UnterminatedRegExpException|JSMin_UnterminatedStringException | |
JSMin::consumeMultipleLineComment |
( |
| ) |
|
|
protected |
Consume a multiple line comment from input (possibly retaining it)
- Exceptions
-
JSMin::consumeSingleLineComment |
( |
| ) |
|
|
protected |
Consume a single line comment from input (possibly retaining it)
Return the next character from stdin. Watch out for lookahead. If the character is a control character, translate it to a space or linefeed.
- Returns
- string
Return true if the character is a letter, digit, underscore, dollar sign, or non-ASCII character.
- Parameters
-
- Returns
- bool
Does $a indicate end of input?
- Parameters
-
- Returns
- bool
JSMin::isRegexpLiteral |
( |
| ) |
|
|
protected |
Perform minification, return result
- Returns
- string
static JSMin::minify |
( |
|
$js | ) |
|
|
static |
Minify Javascript.
- Parameters
-
string | $js | Javascript to be minified |
- Returns
- string
Get the next character, skipping over comments. Some comments may be preserved.
- Returns
- string
Get next char (without getting it). If is ctrl character, translate to a space or newline.
- Returns
- string
const JSMin::ACTION_DELETE_A = 2 |
const JSMin::ACTION_DELETE_A_B = 3 |
const JSMin::ACTION_KEEP_A = 1 |
const JSMin::ORD_SPACE = 32 |
The documentation for this class was generated from the following file: