abstract |
---|
Methods | ||
---|---|---|
protected
|
Finalize()
|
# |
protected
|
SetComments($single_comments, $multi_comments)
|
# |
protected
|
SetQuotedStrings($strings)
|
# |
protected
|
SetContinuation($string)
|
# |
protected
|
SetSpaces($spaces)
|
# |
protected
|
SetIdentifierRegex($re)
|
# |
protected
|
SetTokens($tokens)
|
# |
protected
|
Reset($data = '')
|
# |
abstract
protected
|
MinifyData()
|
# |
public
|
Minify($contents)
|
# |
public
|
MinifyFrom($input)
|
# |
public
|
MinifyTo($output, $contents)
|
# |
public
|
MinifyFileTo($output, $input)
|
# |
protected
|
GetNextToken(&$offset, &$token, &$token_type)
|
# |
protected
|
ProcessContinuation($contents, $length, &$offset, $continuation)
|
# |
protected
|
ProcessSingleLineComments($contents, $length, &$offset)
|
# |
protected
|
ProcessSpaces($contents, $length, &$offset, &$token, &$token_type)
|
# |
protected
|
EatSpaces($contents, $length, &$offset)
|
# |
protected
|
ProcessNewlines($contents, $length, &$offset, &$token, &$token_type)
|
# |
protected
|
ProcessMultiLineComments($contents, $length, &$offset)
|
# |
protected
|
ProcessString($contents, $length, &$offset, &$token, &$token_type)
|
# |
protected
|
ProcessToken($contents, $length, &$offset, &$token, &$token_type)
|
# |
Constants | ||
---|---|---|
public
|
TOKEN_NONE = 0
|
# |
public
|
TOKEN_SPACE = 1
|
# |
public
|
TOKEN_NEWLINE = 2
|
# |
public
|
TOKEN_STRING = 3
|
# |
public
|
TOKEN_ELEMENT = 4
|
# |
public
|
TOKEN_IDENTIFIER = 5
|
# |
Properties | |||
---|---|---|---|
protected
|
|
$SingleLineComments = []
|
# |
protected
|
|
$MultiLineComments = []
|
# |
protected
|
|
$QuotedStrings = []
|
# |
protected
|
|
$Continuation = false
|
# |
protected
|
|
$Spaces = [" " => " ", "\t" => "\t", "\v" => "\v", "\r" => "\r", "\xA0" => "\xA0"]
|
# |
protected
|
|
$IdentifierRegex = false
|
# |
protected
|
|
$Tokens = []
|
# |
protected
|
|
$Content
|
# |
protected
|
|
$ContentLength
|
# |
protected
|
|
$CurrentLine
|
# |
protected
|
|
$LastToken
|
# |
protected
|
|
$LastTokenType
|
# |