function FeedsXPathParserQueryParser::handle_quote in Feeds XPath Parser 6
Same name and namespace in other branches
- 7 FeedsXPathParserQueryParser.inc \FeedsXPathParserQueryParser::handle_quote()
1 call to FeedsXPathParserQueryParser::handle_quote()
File
- ./
FeedsXPathParserQueryParser.inc, line 57 - 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 handle_quote($c) {
if ($this->in_quotes && $c == $this->quote_char) {
$this->in_quotes = FALSE;
$this->word .= $c;
$this->output .= $this->word;
$this->word = '';
}
elseif (!$this->in_quotes) {
$this->in_quotes = TRUE;
$this
->handle_word();
$this->word = $c;
$this->quote_char = $c;
}
else {
$this->word .= $c;
}
}