function FeedsXPathParserQueryParser::start in Feeds XPath Parser 7
Same name and namespace in other branches
- 6 FeedsXPathParserQueryParser.inc \FeedsXPathParserQueryParser::start()
1 call to FeedsXPathParserQueryParser::start()
File
- ./
FeedsXPathParserQueryParser.inc, line 33 - Pseudo-parser of XPath queries. When an XML document has a default namespace this gets called so that adding the __default__ namepace where appropriate. Aren't we nice?
Class
- FeedsXPathParserQueryParser
- @file Pseudo-parser of XPath queries. When an XML document has a default namespace this gets called so that adding the __default__ namepace where appropriate. Aren't we nice?
Code
function start() {
for ($i = 0; $i < drupal_strlen($this->query); $i++) {
$this->i = $i;
$c = drupal_substr($this->query, $i, 1);
if ($c == '"' || $c == "'") {
$this
->handle_quote($c);
continue;
}
if ($this->in_quotes) {
$this->word .= $c;
continue;
}
if (in_array($c, $this->word_boundaries)) {
$this
->handle_word_boundary($c);
}
else {
$this->word .= $c;
}
}
$this
->handle_word();
}