Lines Matching refs:contents
1111 function importFromString($contents) { argument
1112 $this->deleteComments ($contents);
1113 return $this->importFromStringInternal ($contents);
1121 protected function deleteComments (&$contents) { argument
1124 $max = strlen ($contents);
1128 $contents [$pos] == '/' &&
1129 $contents [$pos+1] == '*' ) {
1132 $contents [$pos] = ' ';
1133 $contents [$pos+1] = ' ';
1138 $contents [$pos] == '*' &&
1139 $contents [$pos+1] == '/' &&
1143 $contents [$pos] = ' ';
1144 $contents [$pos+1] = ' ';
1149 $contents [$pos] = ' ';
1160 protected function importFromStringInternal($contents, $media = NULL, &$processed = NULL) { argument
1163 $max = strlen ($contents);
1165 $bracket_open = strpos ($contents, '{', $pos);
1169 $bracket_close = strpos ($contents, '}', $pos);
1183 $before_open_bracket = substr ($contents, $pos, $bracket_open - $pos);
1193 $contents_in_media = substr ($contents, $bracket_open + 1);
1208 $decls = substr ($contents, $bracket_open + 1, $bracket_close - $bracket_open);
1240 $contents = fread($handle, filesize($filename));
1242 if ( $contents === false ) {
1246 return $this->importFromString ($contents);
1265 $contents = fread($handle, $filesize);
1267 if ( $contents === false ) {
1272 $contents = preg_replace ('/;.*/', ' ', $contents);
1275 $rep_start = strpos ($contents, '[replacements]');
1283 $rep_end = strpos ($contents, '[', $rep_start);
1289 $defs = substr ($contents, $rep_start, $rep_end - $rep_start);