Lines Matching refs:s
225 function js_compress($s){ argument
227 $s = ltrim($s); // strip all initial whitespace
228 $s .= "\n";
232 $slen = strlen($s); // size of input string
243 while ($i < $slen && (strpos($chars,$s[$i]) === false) ){
244 $result .= $s{$i};
248 $ch = $s{$i};
250 if($ch == '/' && $s{$i+1} == '*' && $s{$i+2} != '@'){
251 $endC = strpos($s,'*/',$i+2);
258 if($ch == '/' && $s{$i+1} == '/'){
259 $endC = strpos($s,"\n",$i+2);
269 while($s{$i-$j} == ' '){
272 if( ($s{$i-$j} == '=') || ($s{$i-$j} == '(') ){
276 while($s{$i+$j} != '/'){
277 while( ($s{$i+$j} != '\\') && ($s{$i+$j} != '/')){
280 if($s{$i+$j} == '\\') $j = $j + 2;
282 $result .= substr($s,$i,$j+1);
291 while( $s{$i+$j} != '"' && ($i+$j < $slen)){
292 if( $s{$i+$j} == '\\' && ($s{$i+$j+1} == '"' || $s{$i+$j+1} == '\\') ){
298 $result .= substr($s,$i,$j+1);
306 while( $s{$i+$j} != "'" && ($i+$j < $slen)){
307 if( $s{$i+$j} == '\\' && ($s{$i+$j+1} == "'" || $s{$i+$j+1} == '\\') ){
313 $result .= substr($s,$i,$j+1);
321 if($i+1 < $slen && (strpos($chars,$s[$i+1]) !== false)){