Same name in other branches
- 5.0.x advagg_js_minify/jshrink.inc \JShrink\Minifier::processOneLineComments()
- 7.x-2.x advagg_js_compress/jshrink.inc \JShrink\Minifier::processOneLineComments()
- 8.x-2.x advagg_js_minify/jshrink.inc \JShrink\Minifier::processOneLineComments()
- 8.x-3.x advagg_js_minify/jshrink.inc \JShrink\Minifier::processOneLineComments()
- 8.x-4.x advagg_js_minify/jshrink.inc \JShrink\Minifier::processOneLineComments()
Removed one line comments, with the exception of some very specific types of conditional comments.
Parameters
int $startIndex The index point where "getReal" function started:
Return value
void
1 call to Minifier::processOneLineComments()
- Minifier::getReal in advagg_js_minify/
jshrink.inc - This function gets the next "real" character. It is essentially a wrapper around the getChar function that skips comments. This has significant performance benefits as the skipping is done using native functions (ie, c code) rather than in script php.
File
-
advagg_js_minify/
jshrink.inc, line 404
Class
- Minifier
- Minifier
Namespace
JShrinkCode
protected function processOneLineComments($startIndex) {
$thirdCommentString = $this->index < $this->len ? $this->input[$this->index] : false;
// kill rest of line
$this->getNext("\n");
unset($this->c);
if ($thirdCommentString == '@') {
$endPoint = $this->index - $startIndex;
$this->c = "\n" . substr($this->input, $startIndex, $endPoint);
}
}