-
getOutput() : void
-
Minify the js.
-
Action -- do something! What to do is determined by the $command argument.
-
get() : voidGet next char. Convert ctrl char to space.
-
Is $c a letter, digit, underscore, dollar sign, or non-ASCII character.
-
min() : voidPerform minification, return result
-
next() : voidGet the next character, skipping over comments. peek() is used to see
-
peek() : voidGet next char. If is ctrl character, translate to a space or newline.
-
public function getOutput()
-
public function sanitize(string $js)
Minify the js. -
protected function action(int $command)
Action -- do something! What to do is determined by the $command argument.action treats a string as a single character. Wow! action recognizes a regular expression if it is preceded by ( or , or =. -
protected function get()
Get next char. Convert ctrl char to space. -
protected function isAlphaNum(variable $c)
Is $c a letter, digit, underscore, dollar sign, or non-ASCII character. -
protected function min()
Perform minification, return result -
protected function next()
Get the next character, skipping over comments. peek() is used to seeif a "/" is followed by a "/" or "". -
protected function peek()
Get next char. If is ctrl character, translate to a space or newline.