Same name and namespace in other branches
  1. 6.0.x advagg_js_minify/jshrink.inc \JShrink\Minifier::isAlphaNumeric() 1 commentaire
  2. 7.x-2.x advagg_js_compress/jshrink.inc \JShrink\Minifier::isAlphaNumeric() 1 commentaire
  3. 8.x-2.x advagg_js_minify/jshrink.inc \JShrink\Minifier::isAlphaNumeric() 1 commentaire
  4. 8.x-3.x advagg_js_minify/jshrink.inc \JShrink\Minifier::isAlphaNumeric() 1 commentaire
  5. 8.x-4.x advagg_js_minify/jshrink.inc \JShrink\Minifier::isAlphaNumeric() 1 commentaire

Checks to see if a character is alphanumeric.

Paramètres

string $char Just one character:

Return value

bool

1 call to Minifier::isAlphaNumeric()
Minifier::loop dans advagg_js_minify/jshrink.inc
The primary action occurs here. This function loops through the input string, outputting anything that's relevant and discarding anything that is not.

Fichier

advagg_js_minify/jshrink.inc, line 580

Classe

Minifier
Minifier

Namespace

JShrink

Code

protected static function isAlphaNumeric($char) {
    return preg_match('/^[\\w\\$\\pL]$/', $char) === 1 || $char == '/';
}