Same name in other branches
  1. 8.x-2.x advagg_css_minify/yui/CSSMin.inc \CSSmin::index_of()

PHP port of Javascript's "indexOf" function for strings only Author: Tubal Martin http://blog.margenn.com

Paramètres

string $haystack:

string $needle:

int $offset index (optional):

Return value

int

6 calls to CSSmin::index_of()
CSSmin::compress_hex_colors dans advagg_css_minify/yui/CSSMin.inc
Utility method to compress hex color values of the form #AABBCC to #ABC or short color name.
CSSmin::extract_data_urls dans advagg_css_minify/yui/CSSMin.inc
Utility method to replace all data urls with tokens before we start compressing, to avoid performance issues running some of the subsequent regexes against large strings chunks.
CSSmin::minify dans advagg_css_minify/yui/CSSMin.inc
Does bulk of the minification
CSSmin::replace_string dans advagg_css_minify/yui/CSSMin.inc
CSSmin::rgb_to_hex dans advagg_css_minify/yui/CSSMin.inc

... See full list

Fichier

advagg_css_minify/yui/CSSMin.inc, line 731

Classe

CSSmin

Code

private function index_of($haystack, $needle, $offset = 0) {
    $index = strpos($haystack, $needle, $offset);
    return $index !== FALSE ? $index : -1;
}