Lines Matching refs:line
144 $line = $this->readLine();
148 if (3 <= strlen($line)
149 && 0xef === ord($line[0])
150 && 0xbb === ord($line[1])
151 && 0xbf === ord($line[2])) {
152 $line = substr($line, 3);
155 switch (strtoupper($line)) {
170 $line = $this->readLine();
171 if ('END:' === strtoupper(substr($line, 0, 4))) {
174 $result = $this->parseLine($line);
180 $name = strtoupper(substr($line, 4));
190 * @param string $line Unfolded line
194 protected function parseLine($line) argument
197 if ('BEGIN:' === strtoupper(substr($line, 0, 6))) {
198 if (substr($line, 6) === $this->root->name) {
199 …throw new ParseException('Invalid MimeDir file. Unexpected component: "'.$line.'" in document type…
201 $component = $this->root->createComponent(substr($line, 6), [], false);
205 $line = $this->readLine();
206 if ('END:' === strtoupper(substr($line, 0, 4))) {
209 $result = $this->parseLine($line);
215 $name = strtoupper(substr($line, 4));
223 $property = $this->readProperty($line);
293 $line = $rawLine;
306 $line .= $curLine;
315 return $line;
321 protected function readProperty($line) argument
347 preg_match_all($regex, $line, $matches, PREG_SET_ORDER);